##// END OF EJS Templates
Fixed: custom field displayed as deleted in the issue history even if no value was set....
Jean-Philippe Lang -
r695:1b2e80545a20
parent child
Show More
@@ -86,10 +86,12 class Issue < ActiveRecord::Base
86 }
86 }
87 # custom fields changes
87 # custom fields changes
88 custom_values.each {|c|
88 custom_values.each {|c|
89 next if (@custom_values_before_change[c.custom_field_id]==c.value ||
90 (@custom_values_before_change[c.custom_field_id].blank? && c.value.blank?))
89 @current_journal.details << JournalDetail.new(:property => 'cf',
91 @current_journal.details << JournalDetail.new(:property => 'cf',
90 :prop_key => c.custom_field_id,
92 :prop_key => c.custom_field_id,
91 :old_value => @custom_values_before_change[c.custom_field_id],
93 :old_value => @custom_values_before_change[c.custom_field_id],
92 :value => c.value) unless @custom_values_before_change[c.custom_field_id]==c.value
94 :value => c.value)
93 }
95 }
94 @current_journal.save unless @current_journal.details.empty? and @current_journal.notes.empty?
96 @current_journal.save unless @current_journal.details.empty? and @current_journal.notes.empty?
95 end
97 end
General Comments 0
You need to be logged in to leave comments. Login now