From 5fbbdf7cb6fa9f5a235f800dd7db7bd0b33b4382 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 2 Apr 2009 17:28:48 +0000 Subject: [PATCH] Make sure that lock_version changes are not stored in journals table (#3004). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2644 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/issue.rb b/app/models/issue.rb index f3513e564f..e7360d3d7a 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -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),