aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/View/Web.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-29 15:15:10 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-29 15:15:10 +0100
commit759b5ef970546c0a70fb4f8d051b1f6dd54e4d2d (patch)
tree2f76a073e1c07df40e8cec71cafef02f5d54c184 /perllib/FixMyStreet/App/View/Web.pm
parent05c6a4b980b07a7c15b6b9727f6315d326e233a0 (diff)
parentb43dbace0f747897640920e4cf9adb55b84bc2c8 (diff)
Merge branch 'move-report-states-to-database-part-1'
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;
}