summaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-09-28 06:47:32 +0200
committerlpsolit%gmail.com <>2005-09-28 06:47:32 +0200
commitb6004bbf18e311b9d9856d1c674092406454c6b0 (patch)
tree0fbdc5fe3138291ea4b09ec08cb9440997fa2457 /editproducts.cgi
parent6d8b5d06db38943257610f64a6a11b526e1a0c94 (diff)
downloadbugzilla-b6004bbf18e311b9d9856d1c674092406454c6b0.tar.gz
bugzilla-b6004bbf18e311b9d9856d1c674092406454c6b0.tar.xz
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
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-xeditproducts.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/editproducts.cgi b/editproducts.cgi
index 54f1de190..82ce7433d 100755
--- a/editproducts.cgi
+++ b/editproducts.cgi
@@ -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');