aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-10-13 17:05:58 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-11-11 07:44:44 +0000
commit8168f6ae5d8499a6dde9466d17a3ae88cb038c21 (patch)
tree092d540a7da109d8022d8e7cc9ab2b0aa3b08e04 /perllib/FixMyStreet/Cobrand
parentb8f8d5554523ae0aac58bea6811041b4fe070635 (diff)
[UK] Hide usrn/asset_id Open311 fields.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand')
-rw-r--r--perllib/FixMyStreet/Cobrand/Default.pm9
-rw-r--r--perllib/FixMyStreet/Cobrand/UK.pm5
2 files changed, 14 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm
index 13d5cb8f1..a2ca9f8c1 100644
--- a/perllib/FixMyStreet/Cobrand/Default.pm
+++ b/perllib/FixMyStreet/Cobrand/Default.pm
@@ -1177,4 +1177,13 @@ sub lookup_by_ref_regex {
return qr/^\s*ref:\s*(\d+)\s*$/;
}
+=head2 category_extra_hidden
+
+Return true if an Open311 service attribute should be a hidden field.
+=cut
+
+sub category_extra_hidden {
+ my ($self, $meta) = @_;
+}
+
1;
diff --git a/perllib/FixMyStreet/Cobrand/UK.pm b/perllib/FixMyStreet/Cobrand/UK.pm
index 206f4bb1e..08ecf0b7d 100644
--- a/perllib/FixMyStreet/Cobrand/UK.pm
+++ b/perllib/FixMyStreet/Cobrand/UK.pm
@@ -396,5 +396,10 @@ sub lookup_by_ref_regex {
return qr/^\s*(\d+)\s*$/;
}
+sub category_extra_hidden {
+ my ($self, $meta) = @_;
+ return 1 if $meta eq 'usrn' || $meta eq 'asset_id';
+ return 0;
+}
1;