summaryrefslogtreecommitdiffstats
path: root/lib/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins')
-rw-r--r--lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb
index 1cde646e9..050e442b4 100644
--- a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb
+++ b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb
@@ -151,6 +151,14 @@ module Redmine
true
end
+ def reassign_custom_field_values
+ if @custom_field_values
+ values = @custom_field_values.inject({}) {|h,v| h[v.custom_field_id] = v.value; h}
+ @custom_field_values = nil
+ self.custom_field_values = values
+ end
+ end
+
def reset_custom_values!
@custom_field_values = nil
@custom_field_values_changed = true