diff options
author | Byron Jones <glob@mozilla.com> | 2015-04-08 05:55:13 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-04-08 05:55:13 +0200 |
commit | 6b24a73889c310e2b44cb13feb807ef71068268a (patch) | |
tree | af0dc22bf27d1b6100632054785f86f4603f74d5 | |
parent | 6a2f368d058697c932457abc9aaae6edc5734a2d (diff) | |
download | bugzilla-6b24a73889c310e2b44cb13feb807ef71068268a.tar.gz bugzilla-6b24a73889c310e2b44cb13feb807ef71068268a.tar.xz |
Bug 1152163: passing an invalid bug id to the multiple bug format triggers: Can't call method "name" on an undefined value
-rw-r--r-- | extensions/BugModal/Extension.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/BugModal/Extension.pm b/extensions/BugModal/Extension.pm index c07bb4cde..04d7cb567 100644 --- a/extensions/BugModal/Extension.pm +++ b/extensions/BugModal/Extension.pm @@ -160,6 +160,7 @@ sub template_before_process { && ref($vars->{bugs}) eq 'ARRAY' && scalar(@{ $vars->{bugs} }) == 1; my $bug = $vars->{bugs}->[0]; + return if exists $bug->{error}; # trigger loading of tracking flags Bugzilla::Extension::TrackingFlags->template_before_process({ |