]> source.dussan.org Git - redmine.git/commitdiff
Fixed: Issue updated_on is not updated when a user adds a note with no edit privilege.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 25 Aug 2008 12:51:29 +0000 (12:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 25 Aug 2008 12:51:29 +0000 (12:51 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1758 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 7ebe9db992fc857ae6e78899360f58fb524147d0..4701e41f1d6c99e990671258e485899f96a5dbcd 100644 (file)
@@ -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