fix error
This commit is contained in:
1 parent
d4d45c6047
commit
9529f4c2c3
1 file changed
+2
-2
@@ -212,9 +212,9 @@ module Admin::AsksHelper
|
||||
if !object.nil?
|
||||
value = object.custom_values[k]
|
||||
if value.nil?
|
||||
if k.start_with("default@")
|
||||
if k.start_with?("default@")
|
||||
value = object.custom_values[k.sub(/.*@/,'')]
|
||||
elsif k.start_with("custom@")
|
||||
elsif k.start_with?("custom@")
|
||||
category_id, k = k.scan(/custom@((?:(?!@).)*)@\w+/)[0][0]
|
||||
if category_id==object.category_id.to_s
|
||||
value = object.custom_values[k]
|
||||
|
||||
Reference in new issue
Block a user