aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-01-12 15:48:18 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-01-12 15:48:18 +0000
commita65d8b57f3be2585a5b835e18bb0940170d4b448 (patch)
treee59a6bca9e16665b98d8d04af49b8bf4db1da9a7 /perllib/FixMyStreet/DB
parent940bd236650b2bf7208d9b06c33ee30ad94492f6 (diff)
parent831f0addbac7eb3e6641877c936f90279d1bb186 (diff)
Merge branch 'listshort'
Diffstat (limited to 'perllib/FixMyStreet/DB')
-rw-r--r--perllib/FixMyStreet/DB/Result/User.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/Result/User.pm b/perllib/FixMyStreet/DB/Result/User.pm
index 135f9b4a5..cf6de9a76 100644
--- a/perllib/FixMyStreet/DB/Result/User.pm
+++ b/perllib/FixMyStreet/DB/Result/User.pm
@@ -382,6 +382,8 @@ around add_to_planned_reports => sub {
around remove_from_planned_reports => sub {
my ($orig, $self, $report) = @_;
$self->user_planned_reports->active->for_report($report->id)->remove();
+ $report->unset_extra_metadata('order');
+ $report->update;
};
sub active_planned_reports {