aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Comment.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-03-31 14:24:35 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-03-31 14:24:35 +0100
commit7d0362ca6a8db2909bbd550edc267f31c24bc42e (patch)
tree3647eff05ce9d13e46ea6b650a3ce5777cfd7b73 /perllib/FixMyStreet/DB/Result/Comment.pm
parentdac0d4c71018c01d858d0111d0f772b49a6e124d (diff)
Show right body user form value for fixed reports.
The form element contains 'fixed', so we need to strip the user/council part of the actual state. Fixes #1369.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Comment.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Comment.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Comment.pm b/perllib/FixMyStreet/DB/Result/Comment.pm
index 5734ff8d5..e5929ca57 100644
--- a/perllib/FixMyStreet/DB/Result/Comment.pm
+++ b/perllib/FixMyStreet/DB/Result/Comment.pm
@@ -187,14 +187,14 @@ sub photos {
return \@photos;
}
-=head2 meta_problem_state
+=head2 problem_state_display
Returns a string suitable for display lookup in the update meta section.
Removes the '- council/user' bit from fixed states.
=cut
-sub meta_problem_state {
+sub problem_state_display {
my $self = shift;
my $state = $self->problem_state;