summaryrefslogtreecommitdiffstats
path: root/extensions/TrackingFlags
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-09-02 09:14:42 +0200
committerByron Jones <bjones@mozilla.com>2013-09-02 09:14:42 +0200
commit5dd36d84385c8cc436257d801c909162787eef57 (patch)
treef5861c19fd577bf1ded2e87dfd723c43e5c805d1 /extensions/TrackingFlags
parent81a7d9fc6edf3bc8ffd4a0333fa1774aa36c4e0e (diff)
downloadbugzilla-5dd36d84385c8cc436257d801c909162787eef57.tar.gz
bugzilla-5dd36d84385c8cc436257d801c909162787eef57.tar.xz
Bug 911545: Fetching a non-public bug via XML fails due to TrackingFlags extension
Diffstat (limited to 'extensions/TrackingFlags')
-rw-r--r--extensions/TrackingFlags/Extension.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/TrackingFlags/Extension.pm b/extensions/TrackingFlags/Extension.pm
index fb7278420..e3b8bb4e7 100644
--- a/extensions/TrackingFlags/Extension.pm
+++ b/extensions/TrackingFlags/Extension.pm
@@ -68,7 +68,7 @@ sub template_before_process {
# note: bug/edit.html.tmpl doesn't support multiple bugs
my $bug = exists $vars->{'bugs'} ? $vars->{'bugs'}[0] : $vars->{'bug'};
- if ($bug) {
+ if ($bug && !$bug->{error}) {
$vars->{'tracking_flags'} = Bugzilla::Extension::TrackingFlags::Flag->match({
product => $bug->product,
component => $bug->component,