diff options
author | Struan Donald <struan@exo.org.uk> | 2019-07-19 15:18:21 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2019-07-31 14:44:36 +0100 |
commit | d43dcaeccd714926c7dd9d00c554d16d179c21ab (patch) | |
tree | 98b540a9d08f8f113748b70b71cd703c5c81cc66 /perllib/Open311/GetServiceRequestUpdates.pm | |
parent | 924a9f155140e511a88f21a6cd0116a93fe08176 (diff) |
[open311] unset the external_status_code if blank
If an update with a blank external_status_code is fetched then unset it
otherwise we will always a detect a change in the external_status_code
which might mean phantom updates.
Diffstat (limited to 'perllib/Open311/GetServiceRequestUpdates.pm')
-rw-r--r-- | perllib/Open311/GetServiceRequestUpdates.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/Open311/GetServiceRequestUpdates.pm b/perllib/Open311/GetServiceRequestUpdates.pm index 7480ba258..2489bd611 100644 --- a/perllib/Open311/GetServiceRequestUpdates.pm +++ b/perllib/Open311/GetServiceRequestUpdates.pm @@ -181,6 +181,8 @@ sub process_update { if ( $external_status_code ) { $comment->set_extra_metadata(external_status_code => $external_status_code); $p->set_extra_metadata(external_status_code => $external_status_code); + } else { + $p->set_extra_metadata(external_status_code => ''); } # if the customer reference to display in the report metadata is |