diff options
author | Struan Donald <struan@exo.org.uk> | 2018-05-04 15:49:08 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-12-17 17:24:52 +0000 |
commit | 8680b7f42145332a28de2150ff4d650d56746036 (patch) | |
tree | 2f79931b81fa880906d7eff2916486e9c8f8e3f2 /perllib | |
parent | 0751ba9df913de04fb14555db8a2cc91f6ac72a5 (diff) |
cobrand hook for extra processing upon report inspection
Add a hook to enable the cobrand to do some extra processing when saving
a report on the inspect report screen.
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index 4e009f8d4..10aabd1fd 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -480,6 +480,8 @@ sub inspect : Private { } } + $c->cobrand->call_hook(report_inspect_update_extra => $problem); + if ($valid) { if ( $reputation_change != 0 ) { $problem->user->update_reputation($reputation_change); |