aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2018-05-04 15:49:08 +0100
committerDave Arter <davea@mysociety.org>2018-12-17 17:24:52 +0000
commit8680b7f42145332a28de2150ff4d650d56746036 (patch)
tree2f79931b81fa880906d7eff2916486e9c8f8e3f2 /perllib
parent0751ba9df913de04fb14555db8a2cc91f6ac72a5 (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.pm2
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);