diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-01-12 15:48:18 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-01-12 15:48:18 +0000 |
commit | a65d8b57f3be2585a5b835e18bb0940170d4b448 (patch) | |
tree | e59a6bca9e16665b98d8d04af49b8bf4db1da9a7 /perllib/FixMyStreet/DB/Result/User.pm | |
parent | 940bd236650b2bf7208d9b06c33ee30ad94492f6 (diff) | |
parent | 831f0addbac7eb3e6641877c936f90279d1bb186 (diff) |
Merge branch 'listshort'
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/User.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/User.pm | 2 |
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 { |