summaryrefslogtreecommitdiffstats
path: root/extensions/MyDashboard/lib/Queries.pm
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/MyDashboard/lib/Queries.pm')
-rw-r--r--extensions/MyDashboard/lib/Queries.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/extensions/MyDashboard/lib/Queries.pm b/extensions/MyDashboard/lib/Queries.pm
index e81e7f73f..2ec4c8a74 100644
--- a/extensions/MyDashboard/lib/Queries.pm
+++ b/extensions/MyDashboard/lib/Queries.pm
@@ -145,13 +145,10 @@ sub query_bugs {
params => scalar $params->Vars,
order => [ QUERY_ORDER ]);
- my $query = $search->sql();
- my $sth = $dbh->prepare($query);
- $sth->execute();
- my $rows = $sth->fetchall_arrayref();
+ my $data = $search->data;
my @bugs;
- foreach my $row (@$rows) {
+ foreach my $row (@$data) {
my $bug = {};
foreach my $column (SELECT_COLUMNS) {
$bug->{$column} = shift @$row;