aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-01-06 15:56:34 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-01-06 17:09:07 +0000
commit98c4305003a7fdd468822cd45a605dd935943f72 (patch)
treeb0388c94393eeb1ff1744504ca09fab9c9247a2c /perllib/FixMyStreet/DB
parentc46b06e6376e4e522604d3dbee94e215dca4955c (diff)
[fixmystreet.com] Don't show app step if used app.
Fixes #1305.
Diffstat (limited to 'perllib/FixMyStreet/DB')
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index 449bb5be8..237785820 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -363,7 +363,8 @@ around lastupdate => $stz;
around service => sub {
my ( $orig, $self ) = ( shift, shift );
- my $s = $self->$orig(@_);
+ # service might be undef if e.g. unsaved code report
+ my $s = $self->$orig(@_) || "";
$s =~ s/_/ /g;
return $s;
};