diff options
author | Matthew Somerville <matthew@mysociety.org> | 2014-02-27 17:48:04 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-02-27 17:48:04 +0000 |
commit | b47568af59e57d6aa0dc861a1c9ca2c5ce4c707e (patch) | |
tree | 910adfc7d508bd7b1a36ea252b4620fa594726fe /perllib/FixMyStreet/App/Controller/My.pm | |
parent | cdc7ce7c24eb8171487294bbf43c95819f71d53e (diff) | |
parent | 863f3655955d58b16c93f99404dff715ea213489 (diff) |
Merge branch 'issues/671-guidance-on-no-reports'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/My.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/My.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm index c00264315..bbef1f8d8 100644 --- a/perllib/FixMyStreet/App/Controller/My.pm +++ b/perllib/FixMyStreet/App/Controller/My.pm @@ -45,6 +45,7 @@ sub my : Path : Args(0) { } )->page( $p_page ); while ( my $problem = $rs->next ) { + $c->stash->{has_content}++; push @$pins, { latitude => $problem->latitude, longitude => $problem->longitude, @@ -64,7 +65,9 @@ sub my : Path : Args(0) { order_by => { -desc => 'confirmed' }, rows => 50 } )->page( $u_page ); + my @updates = $rs->all; + $c->stash->{has_content} += scalar @updates; $c->stash->{updates} = \@updates; $c->stash->{updates_pager} = $rs->pager; |