diff options
Diffstat (limited to 'extensions/MyDashboard/Extension.pm')
-rw-r--r-- | extensions/MyDashboard/Extension.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/extensions/MyDashboard/Extension.pm b/extensions/MyDashboard/Extension.pm index d1bbc17f1..e5f022dec 100644 --- a/extensions/MyDashboard/Extension.pm +++ b/extensions/MyDashboard/Extension.pm @@ -187,6 +187,18 @@ sub _standard_saved_queries { ### Saved query definitions ### These are enabled through the userprefs.cgi UI + + if ($user->showmybugslink) { + my $query = Bugzilla->params->{mybugstemplate}; + $query =~ s/%userid%/$user->login/; + push(@query_defs, { + name => 'mybugs', + heading => "My Bugs", + saved => 1, + params => $query, + }); + } + foreach my $q (@{$user->queries}) { next if !$q->in_mydashboard; push(@query_defs, { name => $q->name, |