diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-01-10 18:54:37 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-01-10 18:54:37 +0000 |
commit | bb24e515ac0658efffd23ecbf7f14a9ae15db533 (patch) | |
tree | bcf7a28a33150c2b8d50669a3bf71ccfc0a8dcc1 | |
parent | 7c1df92482fd5e69d885aaf8daf8f83c7692e26e (diff) |
Make sure updates are always fetched on Zurich SDM report edit page.
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Zurich.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm index aa5a3a8c2..44893f61d 100644 --- a/perllib/FixMyStreet/Cobrand/Zurich.pm +++ b/perllib/FixMyStreet/Cobrand/Zurich.pm @@ -251,12 +251,13 @@ sub admin_report_edit { } $c->stash->{status_message} = '<p><em>' . _('Updated!') . '</em></p>'; - $c->stash->{updates} = [ $c->model('DB::Comment') - ->search( { problem_id => $problem->id }, { order_by => 'created' } ) - ->all ]; } + $c->stash->{updates} = [ $c->model('DB::Comment') + ->search( { problem_id => $problem->id }, { order_by => 'created' } ) + ->all ]; + return 1; } |