Cloning a plan without the doc causes error when creating a run in that clone.

This commit is contained in:
ghendricks%novell.com 2006-12-07 21:12:47 +00:00
Родитель 1d480581d2
Коммит de8ecc2206
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -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;
}