diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-10-10 08:04:21 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-10-10 08:20:28 +0100 |
commit | 68e18ffea411f6f6fbb0b4424c6aa6c14fd8cd00 (patch) | |
tree | b5e8c636fcdf33f8682499556beb3ae082cfc587 /perllib/FixMyStreet/App/Controller/Report.pm | |
parent | 865d2fc589ec4c43fea6c477b78986676eac745e (diff) |
[Oxfordshire] Remove raise defect/inspected code.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index 662f865c3..c2c321b5d 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -475,14 +475,6 @@ sub inspect : Private { }; $c->user->create_alert($problem->id, $options); } - - # If the state has been changed to action scheduled and they've said - # they want to raise a defect, consider the report to be inspected. - if ($problem->state eq 'action scheduled' && $c->get_param('raise_defect') && !$problem->get_extra_metadata('inspected')) { - $update_params{extra} = { 'defect_raised' => 1 }; - $problem->set_extra_metadata( inspected => 1 ); - $c->forward( '/admin/log_edit', [ $problem->id, 'problem', 'inspected' ] ); - } } $problem->non_public($c->get_param('non_public') ? 1 : 0); |