Commit 2b40465e authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 247936: Creating a product/component which already existed crashes when…

Bug 247936: Creating a product/component which already existed crashes when adding series - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 5187c079
......@@ -123,6 +123,10 @@ sub initFromParameters {
($self->{'series_id'}, $self->{'category'}, $self->{'subcategory'},
$self->{'name'}, $self->{'creator'}, $self->{'frequency'},
$self->{'query'}, $self->{'public'}) = @_;
# If the first parameter is undefined, check if this series already
# exists and update it series_id accordingly
$self->{'series_id'} ||= $self->existsInDatabase();
}
sub initFromCGI {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment