Skip to content

Commit

Permalink
[Buckinghamshire] Add Unauthorised Signs parish category.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Sep 14, 2023
1 parent 64b2680 commit 300a8f2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions bin/buckinghamshire/add-parish-categories
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ my $contacts = [
},
extra_fields => [ $speed_limit_q ],
},
{
category => 'Unauthorised signs',
extra_metadata => {
group => 'Road and street signs',
},
extra_fields => [ $speed_limit_q ],
},
];

my @parishes;
Expand Down
2 changes: 1 addition & 1 deletion data/test-asset-layers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ buckinghamshire:
found: fixmystreet.assets.buckinghamshire.speed_found
not_found: fixmystreet.assets.buckinghamshire.speed_not_found
no_asset_msg_id: '#js-not-a-road'
asset_category: ["Grass cutting", "Hedge problem", "Dirty signs"]
asset_category: ["Grass cutting", "Hedge problem", "Dirty signs", "Unauthorised signs"]
non_interactive: true
road: true
asset_item: 'road'
Expand Down
2 changes: 1 addition & 1 deletion perllib/FixMyStreet/Cobrand/Buckinghamshire.pm
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ around 'report_validation' => sub {
sub munge_contacts_to_bodies {
my ($self, $contacts, $report) = @_;

my $parish_cats = [ 'Grass cutting', 'Hedge problem', 'Dirty signs' ];
my $parish_cats = [ 'Grass cutting', 'Hedge problem', 'Dirty signs', 'Unauthorised signs' ];
my %parish_cats = map { $_ => 1 } @$parish_cats;

return unless $parish_cats{$report->category};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[% IF category.match('Grass cutting|Hedge problem|Dirty signs') %]
[% IF category.match('Grass cutting|Hedge problem|Dirty signs|Unauthorised signs') %]
<p class="form-section-description">
Help us to direct your enquiry/report to the right team first time. Some services are provided by the Parish/Town Council, and are dependent on the location/road speed limit.
</p>
Expand Down

0 comments on commit 300a8f2

Please sign in to comment.