diff options
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/BMO/Extension.pm | 3 | ||||
-rw-r--r-- | extensions/MyDashboard/lib/Queries.pm | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index 7909d732d..554fb2ef2 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -796,6 +796,9 @@ sub search_operator_field_override { my @comments = $cgi->param('comments'); my $exclude_comments = scalar(@comments) && !grep { $_ eq '1' } @comments; + use Data::Dumper; + print STDERR Dumper \@comments; + if ($cgi->param('query_format') && $cgi->param('query_format') eq 'specific' && $exclude_comments diff --git a/extensions/MyDashboard/lib/Queries.pm b/extensions/MyDashboard/lib/Queries.pm index 2ec4c8a74..e81e7f73f 100644 --- a/extensions/MyDashboard/lib/Queries.pm +++ b/extensions/MyDashboard/lib/Queries.pm @@ -145,10 +145,13 @@ sub query_bugs { params => scalar $params->Vars, order => [ QUERY_ORDER ]); - my $data = $search->data; + my $query = $search->sql(); + my $sth = $dbh->prepare($query); + $sth->execute(); + my $rows = $sth->fetchall_arrayref(); my @bugs; - foreach my $row (@$data) { + foreach my $row (@$rows) { my $bug = {}; foreach my $column (SELECT_COLUMNS) { $bug->{$column} = shift @$row; |