diff options
author | lpsolit%gmail.com <> | 2005-09-28 04:47:32 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-09-28 04:47:32 +0000 |
commit | b6004bbf18e311b9d9856d1c674092406454c6b0 (patch) | |
tree | 0fbdc5fe3138291ea4b09ec08cb9440997fa2457 /editproducts.cgi | |
parent | 6d8b5d06db38943257610f64a6a11b526e1a0c94 (diff) | |
download | bugs-b6004bbf18e311b9d9856d1c674092406454c6b0.tar bugs-b6004bbf18e311b9d9856d1c674092406454c6b0.tar.gz bugs-b6004bbf18e311b9d9856d1c674092406454c6b0.tar.bz2 bugs-b6004bbf18e311b9d9856d1c674092406454c6b0.tar.xz bugs-b6004bbf18e311b9d9856d1c674092406454c6b0.zip |
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-x | editproducts.cgi | 6 |
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'); |