summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-07-17 04:40:01 +0000
committerGo MAEDA <maeda@farend.jp>2022-07-17 04:40:01 +0000
commitf52b3f90eb04bf312472660b35aae8edc15eb5d5 (patch)
tree06cc36220ef2dd0a5284ee28bd9a705a471e4305 /app/controllers
parent0afe0cf609b67f50e2758ec03f4dce0a322f91cb (diff)
downloadredmine-f52b3f90eb04bf312472660b35aae8edc15eb5d5.tar.gz
redmine-f52b3f90eb04bf312472660b35aae8edc15eb5d5.zip
Mark edited journal notes as "Edited" (#31505).
Patch by Marius BALTEANU. git-svn-id: https://svn.redmine.org/redmine/trunk@21713 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/journals_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/journals_controller.rb b/app/controllers/journals_controller.rb
index a9cf41d8c..40c679e5e 100644
--- a/app/controllers/journals_controller.rb
+++ b/app/controllers/journals_controller.rb
@@ -91,7 +91,9 @@ class JournalsController < ApplicationController
def update
(render_403; return false) unless @journal.editable_by?(User.current)
- @journal.safe_attributes = params[:journal]
+ journal_attributes = params[:journal]
+ journal_attributes[:updated_by] = User.current
+ @journal.safe_attributes = journal_attributes
@journal.save
@journal.destroy if @journal.details.empty? && @journal.notes.blank?
call_hook(:controller_journals_edit_post, {:journal => @journal, :params => params})