summaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
diff options
context:
space:
mode:
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');