]> git.openstreetmap.org Git - rails.git/commitdiff
Set updated_by when resolving issues
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 9 Jun 2021 14:47:31 +0000 (15:47 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 9 Jun 2021 14:47:31 +0000 (15:47 +0100)
Refs #3211

app/controllers/issues_controller.rb

index cd3584f027536b00e067f04050d234893b68f921..f30ece3ec023d3dcef7523d8ad7584a8919d2c40 100644 (file)
@@ -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