зеркало из https://github.com/mozilla/gecko-dev.git
Cloning now uses the logged in user as author/manager.
This commit is contained in:
Родитель
0a37c639d2
Коммит
acc3f42d6a
|
@ -225,7 +225,7 @@ sub clone {
|
||||||
my ($timestamp) = Bugzilla::Testopia::Util::get_time_stamp();
|
my ($timestamp) = Bugzilla::Testopia::Util::get_time_stamp();
|
||||||
$dbh->do("INSERT INTO test_plans ($columns)
|
$dbh->do("INSERT INTO test_plans ($columns)
|
||||||
VALUES (?,?,?,?,?,?,?,?)",
|
VALUES (?,?,?,?,?,?,?,?)",
|
||||||
undef, (undef, $self->{'product_id'}, $self->{'author_id'},
|
undef, (undef, $self->{'product_id'}, Bugzilla->user->id,
|
||||||
$self->{'type_id'}, $self->{'default_product_version'}, $name,
|
$self->{'type_id'}, $self->{'default_product_version'}, $name,
|
||||||
$timestamp, 1));
|
$timestamp, 1));
|
||||||
my $key = $dbh->bz_last_key( 'test_plans', 'plan_id' );
|
my $key = $dbh->bz_last_key( 'test_plans', 'plan_id' );
|
||||||
|
|
|
@ -379,7 +379,7 @@ sub clone {
|
||||||
VALUES (?,?,?,?,?,?,?,?,?,?,?)",
|
VALUES (?,?,?,?,?,?,?,?,?,?,?)",
|
||||||
undef, (undef, $self->{'plan_id'}, $self->{'environment_id'},
|
undef, (undef, $self->{'plan_id'}, $self->{'environment_id'},
|
||||||
$self->{'product_version'}, $build,
|
$self->{'product_version'}, $build,
|
||||||
$self->{'plan_text_version'}, $self->{'manager_id'},
|
$self->{'plan_text_version'}, Bugzilla->user->id,
|
||||||
$timestamp, undef, $summary, undef));
|
$timestamp, undef, $summary, undef));
|
||||||
my $key = $dbh->bz_last_key( 'test_runs', 'run_id' );
|
my $key = $dbh->bz_last_key( 'test_runs', 'run_id' );
|
||||||
return $key;
|
return $key;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче