]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 308318: Can create a product without description but cannot remove an existing...
authorlpsolit%gmail.com <>
Wed, 28 Sep 2005 04:53:05 +0000 (04:53 +0000)
committerlpsolit%gmail.com <>
Wed, 28 Sep 2005 04:53:05 +0000 (04:53 +0000)
editproducts.cgi

index c7947c4289104c9855744ab84c6c6698a19f01a0..568f463fb1524625c53773573220da825db13541 100755 (executable)
@@ -499,6 +499,14 @@ if ($action eq 'new') {
     }
 
     my $description  = trim($cgi->param('description')  || '');
+
+    if ($description eq '') {
+        print "You must enter a description for product '$product'. Please press\n";
+        print "<b>Back</b> and try again.\n";
+        PutTrailer($localtrailer);
+        exit;
+    }
+
     my $milestoneurl = trim($cgi->param('milestoneurl') || '');
     my $disallownew = 0;
     $disallownew = 1 if $cgi->param('disallownew');