From: Andy Allan Date: Wed, 9 Jun 2021 14:47:31 +0000 (+0100) Subject: Set updated_by when resolving issues X-Git-Tag: live~2116^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/63c82ed72f133d9f670c0b1bb03ffd44095f6867 Set updated_by when resolving issues Refs #3211 --- diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index cd3584f02..f30ece3ec 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -50,6 +50,7 @@ class IssuesController < ApplicationController # Status Transistions def resolve if @issue.resolve + @issue.updated_by = current_user.id @issue.save! redirect_to @issue, :notice => t(".resolved") else