aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-08 14:31:36 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-08 14:31:36 +0000
commit6fc5665f17fcfe9e6266ad67108616930fe46717 (patch)
tree4eb938b49992e79e77f4429516124c3eee125705 /perllib
parent29db0da257d6de03158394233fdfddde501ef200 (diff)
Only store original detail if it changes.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index daf52c151..8375e1809 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -306,7 +306,7 @@ sub admin_report_edit {
$extra->{publish_photo} = $c->req->params->{publish_photo} || 0;
$extra->{third_personal} = $c->req->params->{third_personal} || 0;
# Make sure we have a copy of the original detail field
- $extra->{original_detail} = $problem->detail unless $extra->{original_detail};
+ $extra->{original_detail} = $problem->detail if !$extra->{original_detail} && $problem->detail ne $c->req->params->{detail};
$problem->extra( { %$extra } );
# Workflow things