]> source.dussan.org Git - redmine.git/commitdiff
Make sure that lock_version changes are not stored in journals table (#3004).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 2 Apr 2009 17:28:48 +0000 (17:28 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 2 Apr 2009 17:28:48 +0000 (17:28 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2644 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index f3513e564f91f5fb6cce864120a7cd2942516e60..e7360d3d7a2c77991922f0e4c26b0f9058c97659 100644 (file)
@@ -157,7 +157,7 @@ class Issue < ActiveRecord::Base
   def before_save  
     if @current_journal
       # attributes changes
-      (Issue.column_names - %w(id description)).each {|c|
+      (Issue.column_names - %w(id description lock_version created_on updated_on)).each {|c|
         @current_journal.details << JournalDetail.new(:property => 'attr',
                                                       :prop_key => c,
                                                       :old_value => @issue_before_change.send(c),