diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-11-05 16:33:51 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-11-08 15:31:39 +0000 |
commit | 7a39608ab48c8fd3fa2c5a8061b42ee8f9869973 (patch) | |
tree | aa51d01235cde53fd408348f2439121e22beab65 /perllib/FixMyStreet/App/Controller/Report.pm | |
parent | eb68c3fa83ce8796a69429c83adedddba64c7cdc (diff) |
Add admin log entry for more objects and things.
Namely templates, roles, bodies, categories, various user edits,
and when using the inspect form and changing category.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index 695832832..190687d41 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -516,6 +516,7 @@ sub inspect : Private { if ($valid) { $problem->lastupdate( \'current_timestamp' ); $problem->update; + $c->forward( '/admin/log_edit', [ $problem->id, 'problem', 'edit' ] ); if ($update_text || %update_params) { my $timestamp = \'current_timestamp'; if (my $saved_at = $c->get_param('saved_at')) { |