Skip to content

Commit

Permalink
[Bromley] [Oxfordshire] Warnfix.
Browse files Browse the repository at this point in the history
Context is not always passed in a few cobrand _list-entry.html
templates.
  • Loading branch information
dracos committed Dec 7, 2023
1 parent 06bc6de commit 2cb6c93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion perllib/FixMyStreet/Cobrand/Bromley.pm
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ sub geocode_postcode {
# Bromley pins always yellow
sub pin_colour {
my ( $self, $p, $context ) = @_;
return 'grey' if ($context ne 'reports' && !$self->owns_problem($p));
return 'grey' if ($context||'') ne 'reports' && !$self->owns_problem($p);
return 'yellow';
}

Expand Down
2 changes: 1 addition & 1 deletion perllib/FixMyStreet/Cobrand/Oxfordshire.pm
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ sub reports_ordering {

sub pin_colour {
my ( $self, $p, $context ) = @_;
return 'grey' if $context ne 'reports' && !$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';
Expand Down

0 comments on commit 2cb6c93

Please sign in to comment.