diff options
Diffstat (limited to 'Bugzilla/Status.pm')
-rw-r--r-- | Bugzilla/Status.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Status.pm b/Bugzilla/Status.pm index 1159fa4ae..2821f7c6e 100644 --- a/Bugzilla/Status.pm +++ b/Bugzilla/Status.pm @@ -175,8 +175,8 @@ sub _status_condition { my ($self, $old_status) = @_; my @values; my $cond = 'old_status IS NULL'; - # For newly-filed bugs - if ($old_status) { + # We may pass a fake status object to represent the initial unset state. + if ($old_status && $old_status->id) { $cond = 'old_status = ?'; push(@values, $old_status->id); } |