summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-07-14 10:37:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-07-14 10:37:10 +0000
commit8d982736e03595739235b0da123a105c43fdaf75 (patch)
tree75f6d91a59bd7463a3fbe84f4729f14029caf6df /lib
parentdd11d70eb9624c6e9bea865be7bca76d05f1a808 (diff)
downloadredmine-8d982736e03595739235b0da123a105c43fdaf75.tar.gz
redmine-8d982736e03595739235b0da123a105c43fdaf75.zip
Class mismatch when reloading in development mode (#17431).
git-svn-id: http://svn.redmine.org/redmine/trunk@13323 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/field_format.rb4
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)