From 02fcb1606bc2b739fdc798e5ca06f2ed1b6bf6ea Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 17 Mar 2017 22:25:08 +0000 Subject: Fix warning, use correct user object in delete log --- perllib/FixMyStreet/App/Controller/Report.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index 27f4393bb..1c2e98bd4 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -275,7 +275,7 @@ sub delete :Local :Args(1) { $p->user->update_reputation(-1); $c->model('DB::AdminLog')->create( { - user => $c->user, + user => $c->user->obj, admin_user => $c->user->from_body->name, object_type => 'problem', action => 'state_change', -- cgit v1.2.3