diff options
author | Struan Donald <struan@exo.org.uk> | 2017-09-18 16:46:47 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2017-10-16 10:43:45 +0100 |
commit | 69cd91b70b488ebba89558cbc41d2472ecbbec5a (patch) | |
tree | c194ee28b98d79e250f0fe8adacf4f2e1eafb60e /perllib/FixMyStreet/App/Controller/Moderate.pm | |
parent | 2404b1954614d9cd93c44e42a13449b7a7efaae1 (diff) |
log all state changes in admin as comments
Create a comment on a problem when the admin is used to change the state
of the problem. If only the state is changed then create a comment with
blank text. If the category and state are changing then include details
of the category change in the comment.
Not all the state changes are displayed at the template level by
default.
Fixes #1846
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Moderate.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Moderate.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Moderate.pm b/perllib/FixMyStreet/App/Controller/Moderate.pm index 1313b5071..42dc759e5 100644 --- a/perllib/FixMyStreet/App/Controller/Moderate.pm +++ b/perllib/FixMyStreet/App/Controller/Moderate.pm @@ -85,7 +85,7 @@ sub moderate_report : Chained('report') : PathPart('') : Args(0) { sub moderating_user_name { my $user = shift; - return $user->from_body ? $user->from_body->name : 'a FixMyStreet administrator'; + return $user->from_body ? $user->from_body->name : _('an administrator'); } sub report_moderate_audit : Private { |