зеркало из https://github.com/mozilla/gecko-dev.git
Cloning a plan without the doc causes error when creating a run in that clone.
This commit is contained in:
Родитель
1d480581d2
Коммит
de8ecc2206
|
@ -231,9 +231,8 @@ sub clone {
|
|||
$self->{'type_id'}, $self->{'default_product_version'}, $name,
|
||||
$timestamp, 1));
|
||||
my $key = $dbh->bz_last_key( 'test_plans', 'plan_id' );
|
||||
if ($store_doc){
|
||||
$self->store_text($key, $self->{'author_id'}, $self->text, $timestamp);
|
||||
}
|
||||
my $text = $store_doc ? $self->text : '';
|
||||
$self->store_text($key, $self->{'author_id'}, $text, $timestamp);
|
||||
return $key;
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче