diff options
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm index 4b8966aef..bbbd682ba 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -579,8 +579,11 @@ sub processed_summary_string { $duration_clause = $problem->duration_string($c) } if ($problem->external_id) { - my $external_body = $duration_clause? _("their") : $problem->external_body; - $external_ref_clause = sprintf(_('%s ref: %s'), $external_body, $problem->external_id); + if ($duration_clause) { + $external_ref_clause = sprintf(_('their ref: %s'), $problem->external_id); + } else { + $external_ref_clause = sprintf(_('%s ref: %s'), $problem->external_body, $problem->external_id); + } } if ($duration_clause and $external_ref_clause) { return "$duration_clause, $external_ref_clause" |