diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-09 09:44:08 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-09 09:44:08 +0100 |
commit | c25332f3c0a6201726882c9d5b69bf314b5d061d (patch) | |
tree | 71a047bf42a22fab0ea3dd076490ef45510605c3 /perllib/FixMyStreet/App/Controller/Admin.pm | |
parent | 47b754d7a8dd1114eb745efcaf1495fb27f0c1d8 (diff) | |
parent | 332c92ead825503c0540f805a0fdb39c64212c15 (diff) |
Merge branch 'photo-caching'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index 2f4669456..103f4d473 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -535,8 +535,8 @@ sub report_edit : Path('report_edit') : Args(1) { $self->remove_photo($c, $problem, $remove_photo_param); } - if ($problem->state eq 'hidden') { - $problem->get_photoset->delete_cached; + if ($problem->state eq 'hidden' || $problem->non_public) { + $problem->get_photoset->delete_cached(plus_updates => 1); } if ( $problem->is_visible() and $old_state eq 'unconfirmed' ) { |