aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/View/Web.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App/View/Web.pm')
-rw-r--r--perllib/FixMyStreet/App/View/Web.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/View/Web.pm b/perllib/FixMyStreet/App/View/Web.pm
index fe200a8fc..93c459e26 100644
--- a/perllib/FixMyStreet/App/View/Web.pm
+++ b/perllib/FixMyStreet/App/View/Web.pm
@@ -169,12 +169,12 @@ sub decode {
}
sub prettify_state {
- my ($self, $c, $text) = @_;
+ my ($self, $c, $text, $single_fixed) = @_;
# New template to prevent interaction with current one
my $tt = FixMyStreet::Template->new({ INCLUDE_PATH => $self->{include_path} });
my $var;
$tt->process('report/state-list.html', { state => $text }, \$var);
- $var =~ s/ - .*//;
+ $var =~ s/ - .*// if $single_fixed;
return $var;
}