aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm2
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin/ExorDefects.pm1
2 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index 11bdca805..a7b9fb169 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -78,7 +78,7 @@ sub index : Path : Args(0) {
$c->forward('stats_by_state');
my @unsent = $c->cobrand->problems->search( {
- state => [ 'confirmed' ],
+ state => [ FixMyStreet::DB::Result::Problem::open_states() ],
whensent => undef,
bodies_str => { '!=', undef },
} )->all;
diff --git a/perllib/FixMyStreet/App/Controller/Admin/ExorDefects.pm b/perllib/FixMyStreet/App/Controller/Admin/ExorDefects.pm
index 164a4b42d..013d710af 100644
--- a/perllib/FixMyStreet/App/Controller/Admin/ExorDefects.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin/ExorDefects.pm
@@ -57,6 +57,7 @@ sub download : Path('download') : Args(0) {
my %params = (
-and => [
state => [ 'action scheduled' ],
+ external_id => { '!=' => undef },
'admin_log_entries.action' => 'inspected',
'admin_log_entries.whenedited' => { '>=', $start_date },
'admin_log_entries.whenedited' => { '<=', $end_date + $one_day },