]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 676430: When editing a bug, a user not in the timetracking group generates "Use... bugzilla-4.1.3 release-4.1.3
authorFrédéric Buclin <LpSolit@gmail.com>
Fri, 5 Aug 2011 00:49:01 +0000 (02:49 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Fri, 5 Aug 2011 00:49:01 +0000 (02:49 +0200)
r/a=mkanat

Bugzilla/Bug.pm

index 1f0034ff7b4cf2e06f3a425ea3c1abfcfbb8a495..40bf3af2e0621dd664a60c009d13951c1a47482f 100644 (file)
@@ -2679,7 +2679,7 @@ sub add_comment {
 
     # This makes it so we won't create new comments when there is nothing
     # to add 
-    if ($comment eq '' && !($params->{type} || abs($params->{work_time}))) {
+    if ($comment eq '' && !($params->{type} || abs($params->{work_time} || 0))) {
         return;
     }