aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Roles/Extra.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Roles/Extra.pm b/perllib/FixMyStreet/Roles/Extra.pm
index 883ac2fd7..5132c3e58 100644
--- a/perllib/FixMyStreet/Roles/Extra.pm
+++ b/perllib/FixMyStreet/Roles/Extra.pm
@@ -141,6 +141,7 @@ sub push_extra_fields {
Given an extra field, will replace one with the same code in the
existing list of fields, or add to the end if not present.
+Returns true if it was already present, false if newly added.
=cut
@@ -167,6 +168,7 @@ sub update_extra_field {
}
$self->set_extra_fields(@$existing);
+ return $found;
}
=head2 remove_extra_field