fix error
This commit is contained in:
parent
d4d45c6047
commit
9529f4c2c3
|
@ -212,9 +212,9 @@ module Admin::AsksHelper
|
||||||
if !object.nil?
|
if !object.nil?
|
||||||
value = object.custom_values[k]
|
value = object.custom_values[k]
|
||||||
if value.nil?
|
if value.nil?
|
||||||
if k.start_with("default@")
|
if k.start_with?("default@")
|
||||||
value = object.custom_values[k.sub(/.*@/,'')]
|
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]
|
category_id, k = k.scan(/custom@((?:(?!@).)*)@\w+/)[0][0]
|
||||||
if category_id==object.category_id.to_s
|
if category_id==object.category_id.to_s
|
||||||
value = object.custom_values[k]
|
value = object.custom_values[k]
|
||||||
|
|
Loading…
Reference in New Issue