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
pull/351/head
Jean-Philippe Lang 16 years ago
parent 801ad70cb7
commit 5fbbdf7cb6
  1. 2
      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),

Loading…
Cancel
Save