aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Bromley.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Bromley.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/Bromley.pm12
1 files changed, 11 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm
index 2f47225a7..5d14d0b01 100644
--- a/perllib/FixMyStreet/Cobrand/Bromley.pm
+++ b/perllib/FixMyStreet/Cobrand/Bromley.pm
@@ -16,6 +16,8 @@ sub base_url {
return 'https://fix.bromley.gov.uk';
}
+sub default_show_name { 0 }
+
sub disambiguate_location {
my $self = shift;
my $string = shift;
@@ -112,11 +114,19 @@ sub open311_config {
my ($self, $row, $h, $params) = @_;
my $extra = $row->get_extra_fields;
+ my $title = $row->title;
+
+ foreach (@$extra) {
+ $title .= ' | ID: ' . $_->{value} if $_->{name} eq 'feature_id';
+ $title .= ' | PROW ID: ' . $_->{value} if $_->{name} eq 'prow_reference';
+ }
+ @$extra = grep { $_->{name} !~ /feature_id|prow_reference/ } @$extra;
+
push @$extra,
{ name => 'report_url',
value => $h->{url} },
{ name => 'report_title',
- value => $row->title },
+ value => $title },
{ name => 'public_anonymity_required',
value => $row->anonymous ? 'TRUE' : 'FALSE' },
{ name => 'email_alerts_requested',