diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-28 15:52:02 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-28 15:52:02 +0100 |
commit | 6798a63297e4954344eefbf51147a971f30b58d2 (patch) | |
tree | aff6cf7bc8f3e6de3271dcaccd81cebd8276e44e /perllib/Open311/GetServiceRequestUpdates.pm | |
parent | 323d3a632453bfcd10360fe2c2b9e4d684f350c8 (diff) | |
parent | 8c8b62e2b3a8af1b1f6fafe4080296a3826b7c1e (diff) |
Merge branch 'bexley'
Diffstat (limited to 'perllib/Open311/GetServiceRequestUpdates.pm')
-rw-r--r-- | perllib/Open311/GetServiceRequestUpdates.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/Open311/GetServiceRequestUpdates.pm b/perllib/Open311/GetServiceRequestUpdates.pm index 3b436aaa7..8193aaa9b 100644 --- a/perllib/Open311/GetServiceRequestUpdates.pm +++ b/perllib/Open311/GetServiceRequestUpdates.pm @@ -86,6 +86,8 @@ sub update_comments { return 0; } + my $cobrand = $body->get_cobrand_handler; + for my $request (@$requests) { my $request_id = $request->{service_request_id}; @@ -191,6 +193,9 @@ sub update_comments { $comment->state('hidden') unless $comment->text || $comment->photo || ($comment->problem_state && $state ne $old_state); + $cobrand->call_hook(open311_get_update_munging => $comment) + if $cobrand; + # As comment->created has been looked at above, its time zone has been shifted # to TIME_ZONE (if set). We therefore need to set it back to local before # insertion. We also then need a clone, otherwise the setting of lastupdate |