diff options
author | Byron Jones <bjones@mozilla.com> | 2012-11-08 06:57:37 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-11-08 06:57:37 +0100 |
commit | 5673e87d72bb8bb22ea23cea1e724b354f94922c (patch) | |
tree | 6cfbe6b5311bfa00a63a4b95d348a828a45e7506 /extensions | |
parent | 8fca4ca971ebb0116de0f5af67f79dad4f524ec2 (diff) | |
download | bugzilla-5673e87d72bb8bb22ea23cea1e724b354f94922c.tar.gz bugzilla-5673e87d72bb8bb22ea23cea1e724b354f94922c.tar.xz |
fix shadowbug issue causing crash when editing multiple bugs
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/ShadowBugs/Extension.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/ShadowBugs/Extension.pm b/extensions/ShadowBugs/Extension.pm index b015a6164..a9a1e0861 100644 --- a/extensions/ShadowBugs/Extension.pm +++ b/extensions/ShadowBugs/Extension.pm @@ -58,7 +58,7 @@ sub template_before_process { || $file eq 'bug/show.html.tmpl' || $file eq 'bug/show-header.html.tmpl'; my $bug = exists $vars->{'bugs'} ? $vars->{'bugs'}[0] : $vars->{'bug'}; - return unless $bug->cf_shadow_bug; + return unless $bug && $bug->cf_shadow_bug; $vars->{is_shadow_bug} = 1; if ($file eq 'bug/edit.html.tmpl') { |