summaryrefslogtreecommitdiffstats
path: root/extensions/MyDashboard/lib/WebService.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-03-21 20:57:53 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-03-21 20:57:53 +0100
commit897f58ced15e63ca63e870a40991eaf97de84f2f (patch)
treec82b8104c7f3f4e0860f98cc0381f7cd5db5f1d0 /extensions/MyDashboard/lib/WebService.pm
parenta64fdeb4ee2ce3d3757f9bdd87def70d1e82036e (diff)
downloadbugzilla-897f58ced15e63ca63e870a40991eaf97de84f2f.tar.gz
bugzilla-897f58ced15e63ca63e870a40991eaf97de84f2f.tar.xz
Bug 853432 - "Flags requested of you" doesn't show flags that are requested on Resolved bugs
Diffstat (limited to 'extensions/MyDashboard/lib/WebService.pm')
-rw-r--r--extensions/MyDashboard/lib/WebService.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/MyDashboard/lib/WebService.pm b/extensions/MyDashboard/lib/WebService.pm
index 1f3b7ce06..1a9c212f4 100644
--- a/extensions/MyDashboard/lib/WebService.pm
+++ b/extensions/MyDashboard/lib/WebService.pm
@@ -82,13 +82,13 @@ sub run_flag_query {
my ($self, $params) =@_;
my $user = Bugzilla->login(LOGIN_REQUIRED);
- defined $params->{type}
- || ThrowCodeError('param_required',
- { function => 'MyDashboard.run_flag_query',
- param => 'type' });
-
my $type = $params->{type};
- my $results = query_flags($type);
+ $type || ThrowCodeError('param_required',
+ { function => 'MyDashboard.run_flag_query',
+ param => 'type' });
+
+ my $include_resolved = $params->{include_resolved} || 0;
+ my $results = query_flags($type, $include_resolved);
return { result => { $type => $results }};
}