From: lpsolit%gmail.com <> Date: Wed, 28 Sep 2005 04:53:05 +0000 (+0000) Subject: Bug 308318: Can create a product without description but cannot remove an existing... X-Git-Tag: bugzilla-2.20~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed18c99995e3d2fa0200bb27ccfc30f910655c00;p=thirdparty%2Fbugzilla.git Bug 308318: Can create a product without description but cannot remove an existing description - Patch by Frédéric Buclin r=wicked a=justdave --- diff --git a/editproducts.cgi b/editproducts.cgi index c7947c4289..568f463fb1 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -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 "Back and try again.\n"; + PutTrailer($localtrailer); + exit; + } + my $milestoneurl = trim($cgi->param('milestoneurl') || ''); my $disallownew = 0; $disallownew = 1 if $cgi->param('disallownew');