diff options
Diffstat (limited to 'lib/redmine/field_format.rb')
-rw-r--r-- | lib/redmine/field_format.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb index b71a79f9b..18e5d74a8 100644 --- a/lib/redmine/field_format.rb +++ b/lib/redmine/field_format.rb @@ -597,6 +597,10 @@ module Redmine def target_class @target_class ||= self.class.name[/^(.*::)?(.+)Format$/, 2].constantize rescue nil end + + def reset_target_class + @target_class = nil + end def possible_custom_value_options(custom_value) options = possible_values_options(custom_value.custom_field, custom_value.customized) |