diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-01-15 16:12:04 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-01-15 16:14:46 +0000 |
commit | ee6c5edc9252effe4b056cdea77db8efe08af314 (patch) | |
tree | 20f005712099a0e645b8c40471509daffceab69a /perllib/FixMyStreet | |
parent | 84b59e1ef137295087c009797970b8cd775f1369 (diff) |
Public response in extra, not using updates, and explicit button for Zurich DM to publish.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Zurich.pm | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm index 4857dde03..4846e6f1e 100644 --- a/perllib/FixMyStreet/Cobrand/Zurich.pm +++ b/perllib/FixMyStreet/Cobrand/Zurich.pm @@ -223,17 +223,11 @@ sub admin_report_edit { # Final, public, Update from DM if (my $update = $c->req->param('status_update')) { - FixMyStreet::App->model('DB::Comment')->create( { - text => $update, - user => $c->user->obj, - state => 'confirmed', - confirmed => \'ms_current_timestamp()', - problem => $problem, - mark_fixed => 0, - problem_state => 'fixed - council', - anonymous => 1, - } ); - $problem->state( 'fixed - council' ); + $extra->{public_response} = $update; + $problem->extra( { %$extra } ); + if ($c->req->params->{publish_response}) { + $problem->state( 'fixed - council' ); + } } $problem->lastupdate( \'ms_current_timestamp()' ); |