aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Zurich.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-06-27 15:40:59 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-09-30 11:12:19 +0100
commit66f879bbe6e8c58697dfd99ff8e24b1a0cbcf0fd (patch)
tree13ad5a6a6a77d489cd96ca689e7ebccf6e0f5191 /perllib/FixMyStreet/Cobrand/Zurich.pm
parent9e2d0d842ebeeead4ee8c0c0d7011b765edc35b1 (diff)
[Zurich] Add admin label attribute for categories.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Zurich.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index 242edf991..533d1fd17 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -526,7 +526,8 @@ sub category_options {
my $c = $self->{c};
my @categories = $c->model('DB::Contact')->not_deleted->all;
$c->stash->{category_options} = [ map { {
- category => $_->category, category_display => $_->category,
+ category => $_->category,
+ category_display => $_->get_extra_metadata('admin_label') || $_->category,
abbreviation => $_->get_extra_metadata('abbreviation'),
} } @categories ];
}
@@ -1326,7 +1327,7 @@ sub singleton_bodies_str { 1 }
sub body_extra_fields { [ 'category' ] };
-sub contact_extra_fields { [ 'abbreviation' ] };
+sub contact_extra_fields { [ 'abbreviation', 'admin_label' ] };
sub default_problem_state { 'submitted' }