diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-02-05 16:24:26 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-02-05 16:24:26 +0000 |
commit | 1a676c6a7b4eb01e022459e267270a020b70aa94 (patch) | |
tree | 3bcf52b508cd979b6c95d4f965e505518bde6291 /perllib | |
parent | 89d718680b7da4b1932445b498918e4ba048b9e1 (diff) |
SDM index page pagination.
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Zurich.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm index 366a1ff68..4091bf4b0 100644 --- a/perllib/FixMyStreet/Cobrand/Zurich.pm +++ b/perllib/FixMyStreet/Cobrand/Zurich.pm @@ -236,12 +236,15 @@ sub admin { }, { order_by => 'created desc' } ); + + my $page = $c->req->params->{p} || 1; $c->stash->{reports_published} = $c->cobrand->problems->search( { state => 'fixed - council', bodies_str => $body->parent->id, }, { order_by => 'created desc' - } ); + } )->page( $page ); + $c->stash->{pager} = $c->stash->{reports_published}->pager; } } |