Commit b6004bbf authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 308318: Can create a product without description but cannot remove an…

Bug 308318: Can create a product without description but cannot remove an existing description - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
parent 6d8b5d06
......@@ -303,6 +303,12 @@ if ($action eq 'new') {
}
my $description = trim($cgi->param('description') || '');
if ($description eq '') {
ThrowUserError('product_must_have_description',
{'product' => $product});
}
my $milestoneurl = trim($cgi->param('milestoneurl') || '');
my $disallownew = 0;
$disallownew = 1 if $cgi->param('disallownew');
......
......@@ -1015,8 +1015,12 @@
You must reassign those [% terms.bugs %] to another product before you
can delete this one.
[% ELSIF error == "product_must_have_description" %]
[% title = "Product needs Description" %]
You must enter a description for product '[% product FILTER html %]'.
[% ELSIF error == "product_must_have_version" %]
[% title = "Product needs version" %]
[% title = "Product needs Version" %]
You must enter a version for product '[% product FILTER html %]'.
[% ELSIF error == "product_not_specified" %]
......
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