diff options
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index b6eda1767..827c6f70e 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -86,10 +86,12 @@ class Issue < ActiveRecord::Base } # custom fields changes custom_values.each {|c| + next if (@custom_values_before_change[c.custom_field_id]==c.value || + (@custom_values_before_change[c.custom_field_id].blank? && c.value.blank?)) @current_journal.details << JournalDetail.new(:property => 'cf', :prop_key => c.custom_field_id, :old_value => @custom_values_before_change[c.custom_field_id], - :value => c.value) unless @custom_values_before_change[c.custom_field_id]==c.value + :value => c.value) } @current_journal.save unless @current_journal.details.empty? and @current_journal.notes.empty? end |