diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-10-24 18:41:35 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-10-24 18:41:35 +0000 |
commit | 67c4936908e6bc9ac613b41d3ae00b48a4801daf (patch) | |
tree | eaa907b56b3a3abc20ec980b12d74f3b5d9bd5a2 /lib/redmine | |
parent | b63123ac1e52f04a1c41fc195671a7b94744e25f (diff) | |
download | redmine-67c4936908e6bc9ac613b41d3ae00b48a4801daf.tar.gz redmine-67c4936908e6bc9ac613b41d3ae00b48a4801daf.zip |
Restores commits reverted when rails-4.1 branch was merged (#18174).
Patch by Mischa The Evil.
git-svn-id: http://svn.redmine.org/redmine/trunk@13504 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-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 e1387f2cf..34591bb5f 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) |