aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-18 20:21:33 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-18 20:21:33 +0100
commitbbe8fb87daab16ca285521658bec1dcb2fbdf4d1 (patch)
tree3ca6de0720457ed9bd54d5665c9abac19d64df1e /perllib/FixMyStreet/App/Controller/Report.pm
parent9d8ad13ed231671f2ece5d81c5ce928807d0ba5f (diff)
parentd1c90d15c2f9fd7ecb63a34c835d2c2007f290fe (diff)
Merge branch 'speed-up-reports'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index a410c2d91..c617f5733 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -441,6 +441,7 @@ sub inspect : Private {
# This problem might no longer be visible on the current cobrand,
# if its body has changed (e.g. by virtue of the category changing)
# so redirect to a cobrand where it can be seen if necessary
+ $problem->discard_changes;
my $redirect_uri;
if ( $c->cobrand->is_council && !$c->cobrand->owns_problem($problem) ) {
$redirect_uri = $c->cobrand->base_url_for_report( $problem ) . $problem->url;