diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-01-09 17:41:43 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-01-09 17:41:43 +0000 |
commit | 7c0a79e9b06bdd45fd54f13684faa23e021bf0a7 (patch) | |
tree | ccd4b13ff48fb0de3a38e68c624cb525f25c08e8 /perllib/FixMyStreet | |
parent | f57a9bef43d2ec331f435dccaac0a3d0ef2f4a4f (diff) |
Allow Zurich SDM to choose when to send report back to DM.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Zurich.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm index ec77c98f0..51daf58f5 100644 --- a/perllib/FixMyStreet/Cobrand/Zurich.pm +++ b/perllib/FixMyStreet/Cobrand/Zurich.pm @@ -151,7 +151,17 @@ sub admin_report_edit { $problem->bodies_str( $body->parent->id ); $problem->state( 'confirmed' ); $problem->update; + # log here + + $c->res->redirect( '/admin/summary' ); + return 1; + } elsif ($c->req->param('no_more_updates')) { + $c->forward('check_token'); + + $problem->bodies_str( $body->parent->id ); + $problem->state( 'planned' ); + $problem->update; # log here $c->res->redirect( '/admin/summary' ); |