summaryrefslogtreecommitdiffstats
path: root/extensions/MyDashboard/lib
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/MyDashboard/lib')
-rw-r--r--extensions/MyDashboard/lib/Queries.pm6
-rw-r--r--extensions/MyDashboard/lib/WebService.pm4
2 files changed, 2 insertions, 8 deletions
diff --git a/extensions/MyDashboard/lib/Queries.pm b/extensions/MyDashboard/lib/Queries.pm
index 3156a94c5..435aa7ef4 100644
--- a/extensions/MyDashboard/lib/Queries.pm
+++ b/extensions/MyDashboard/lib/Queries.pm
@@ -164,7 +164,7 @@ sub query_bugs {
}
sub query_flags {
- my ($type, $include_closed) = @_;
+ my ($type) = @_;
my $user = Bugzilla->user;
my $dbh = Bugzilla->dbh;
my $date_now = DateTime->now(time_zone => $user->timezone);
@@ -232,10 +232,6 @@ sub query_flags {
# Skip this flag if the bug is not visible to the user
next if !$visible_bugs{$flag->{'bug_id'}};
- # Skip closed unless user requested closed bugs
- next if (!$include_closed
- && !is_open_state($visible_bugs{$flag->{'bug_id'}}->{'bug_status'}));
-
# Include bug status and summary with each flag
$flag->{'bug_status'} = $visible_bugs{$flag->{'bug_id'}}->{'bug_status'};
$flag->{'bug_summary'} = $visible_bugs{$flag->{'bug_id'}}->{'short_desc'};
diff --git a/extensions/MyDashboard/lib/WebService.pm b/extensions/MyDashboard/lib/WebService.pm
index 69f43f322..41d327446 100644
--- a/extensions/MyDashboard/lib/WebService.pm
+++ b/extensions/MyDashboard/lib/WebService.pm
@@ -87,9 +87,7 @@ sub run_flag_query {
{ function => 'MyDashboard.run_flag_query',
param => 'type' });
- my $include_closed = $params->{include_closed} || 0;
- my $results = query_flags($type, $include_closed);
-
+ my $results = query_flags($type);
return { result => { $type => $results }};
}