summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-08-25 12:51:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-08-25 12:51:29 +0000
commite339d0bcc01ee2aed3293899b5b5446840d81978 (patch)
tree3f366c9b888e0ce7de148824e541687bffe91e7c /app/models/issue.rb
parentdbf4438ddac07afae85358025fd8bb1d3c121c77 (diff)
downloadredmine-e339d0bcc01ee2aed3293899b5b5446840d81978.tar.gz
redmine-e339d0bcc01ee2aed3293899b5b5446840d81978.zip
Fixed: Issue updated_on is not updated when a user adds a note with no edit privilege.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1758 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 7ebe9db99..4701e41f1 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -184,6 +184,8 @@ class Issue < ActiveRecord::Base
@issue_before_change.status = self.status
@custom_values_before_change = {}
self.custom_values.each {|c| @custom_values_before_change.store c.custom_field_id, c.value }
+ # Make sure updated_on is updated when adding a note.
+ updated_on_will_change!
@current_journal
end