diff options
-rwxr-xr-x | Bugzilla/Bug.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 7ffc3b52e..7a4c02e89 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -946,7 +946,8 @@ sub _check_deadline { # Check time-tracking permissions. my $tt_group = Bugzilla->params->{"timetrackinggroup"}; - my $current = ref $invocant ? $invocant->deadline : undef; + # deadline() returns '' instead of undef if no deadline is set. + my $current = ref $invocant ? ($invocant->deadline || undef) : undef; return $current unless $tt_group && Bugzilla->user->in_group($tt_group); # Validate entered deadline |