aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-08-17 19:21:45 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2015-08-19 15:46:18 +0100
commitf5d6ec933c9fd4d57f9b56fec27f7c746a0706b9 (patch)
tree95f377438cf5166e955698806bfb3291b346ebe1 /perllib/FixMyStreet/App/Controller/Admin.pm
parentefa106c52e2668715d17b860a8afa71501691185 (diff)
Use ResultSet/cobrand->problems where appropriate.
Fixes #893.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index 44b898743..0134dad5d 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -1064,7 +1064,7 @@ sub user_edit : Path('user_edit') : Args(1) {
sub flagged : Path('flagged') : Args(0) {
my ( $self, $c ) = @_;
- my $problems = $c->model('DB::Problem')->search( { flagged => 1 } );
+ my $problems = $c->cobrand->problems->search( { flagged => 1 } );
# pass in as array ref as using same template as search_reports
# which has to use an array ref for sql quoting reasons
@@ -1154,7 +1154,7 @@ sub stats : Path('stats') : Args(0) {
);
}
- my $p = $c->model('DB::Problem')->search(
+ my $p = $c->cobrand->problems->search(
{
-AND => [
$field => { '>=', $start_date},