diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm index 8a40cdf1169..483567662c1 100644 --- a/perllib/FixMyStreet/Cobrand/Bromley.pm +++ b/perllib/FixMyStreet/Cobrand/Bromley.pm @@ -102,7 +102,7 @@ sub geocode_postcode { # Bromley pins always yellow sub pin_colour { my ( $self, $p, $context ) = @_; - return 'grey' if !$self->owns_problem( $p ); + return 'grey' if ($context ne 'reports' && !$self->owns_problem($p)); return 'yellow'; } diff --git a/perllib/FixMyStreet/Cobrand/CheshireEast.pm b/perllib/FixMyStreet/Cobrand/CheshireEast.pm index e02793b6a9c..9c91faec340 100644 --- a/perllib/FixMyStreet/Cobrand/CheshireEast.pm +++ b/perllib/FixMyStreet/Cobrand/CheshireEast.pm @@ -100,7 +100,7 @@ sub send_questionnaires { 0 } sub pin_colour { my ( $self, $p, $context ) = @_; - return 'grey' if $p->state eq 'not responsible' || !$self->owns_problem( $p ); + return 'grey' if $p->state eq 'not responsible' || ($context ne 'reports' && !$self->owns_problem($p)); return 'green' if $p->is_fixed || $p->is_closed; return 'yellow' if $p->is_in_progress; return 'red'; diff --git a/perllib/FixMyStreet/Cobrand/Lincolnshire.pm b/perllib/FixMyStreet/Cobrand/Lincolnshire.pm index 25a9fc41b2e..e465631eadb 100644 --- a/perllib/FixMyStreet/Cobrand/Lincolnshire.pm +++ b/perllib/FixMyStreet/Cobrand/Lincolnshire.pm @@ -176,10 +176,9 @@ Lincolnshire uses the following pin colours: sub pin_colour { my ( $self, $p, $context ) = @_; - my $ext_status = $p->get_extra_metadata('external_status_code'); return 'grey' - if $p->state eq 'not responsible' || !$self->owns_problem($p); + if $p->state eq 'not responsible' || ($context ne 'reports' && !$self->owns_problem($p)); return 'orange' if $p->state eq 'investigating' || $p->state eq 'for triage'; return 'yellow' diff --git a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm index 8ca5eeef672..edc286a5e39 100644 --- a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm +++ b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm @@ -85,7 +85,7 @@ sub reports_ordering { sub pin_colour { my ( $self, $p, $context ) = @_; - return 'grey' unless $self->owns_problem( $p ); + return 'grey' if $context ne 'reports' && !$self->owns_problem($p); return 'grey' if $p->is_closed; return 'green' if $p->is_fixed; return 'yellow' if $p->state eq 'confirmed'; diff --git a/perllib/FixMyStreet/Cobrand/UKCouncils.pm b/perllib/FixMyStreet/Cobrand/UKCouncils.pm index eb5297ec662..1af1f4b256d 100644 --- a/perllib/FixMyStreet/Cobrand/UKCouncils.pm +++ b/perllib/FixMyStreet/Cobrand/UKCouncils.pm @@ -287,7 +287,7 @@ sub owns_problem { # then show pins for the other council as grey sub pin_colour { my ( $self, $p, $context ) = @_; - return 'grey' if !$self->owns_problem( $p ); + return 'grey' if $context ne 'reports' && !$self->owns_problem($p); return $self->next::method($p, $context); }