diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-05-15 13:05:17 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-05-23 18:55:10 +0100 |
commit | 15678f4923a3395fc3bb4b6c6cc82cf38d09021e (patch) | |
tree | a8ae0b8b0a1d48f79e41fcaedcd5dd155620e8ec /perllib/FixMyStreet/App/Controller | |
parent | eb58ad65f8b25be9dc4321ca5914ad1d89f8bf3a (diff) |
Add ability to close updates on reports.
The inactive report script can mark matched reports as closed for updates.
This removes the update form and signing up for updates from a report page.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/Update.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm index 13eceadb0..4a5b8db5d 100644 --- a/perllib/FixMyStreet/App/Controller/Report/Update.pm +++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm @@ -240,6 +240,7 @@ This makes sure we only proceed to processing if we've had the form submitted sub check_form_submitted : Private { my ( $self, $c ) = @_; + return if $c->stash->{problem}->get_extra_metadata('closed_updates'); return $c->get_param('submit_update') || ''; } |