From 5673e87d72bb8bb22ea23cea1e724b354f94922c Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 8 Nov 2012 13:57:37 +0800 Subject: fix shadowbug issue causing crash when editing multiple bugs --- extensions/ShadowBugs/Extension.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions') 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') { -- cgit v1.2.3-24-g4f1b