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
This commit is contained in:
Jean-Philippe Lang 2008-08-25 12:51:29 +00:00
parent dbf4438dda
commit e339d0bcc0
1 changed files with 2 additions and 0 deletions

View File

@ -184,6 +184,8 @@ class Issue < ActiveRecord::Base
@issue_before_change.status = self.status @issue_before_change.status = self.status
@custom_values_before_change = {} @custom_values_before_change = {}
self.custom_values.each {|c| @custom_values_before_change.store c.custom_field_id, c.value } 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 @current_journal
end end