aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm16
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()' );