fix default widget link failed
This commit is contained in:
parent
a85d1f938c
commit
0a7c43bbb9
|
@ -6,7 +6,7 @@ module DefaultWidgetHelper
|
|||
def link_to_field(row_data,field, switch, options=nil)
|
||||
method_ary = @page_part.module_app.widget_fields_link_method
|
||||
field = field.to_sym
|
||||
if(method_ary.has_key?(field) and (switch == true))
|
||||
if(method_ary.has_key?(field) and (switch.to_s == "true"))
|
||||
url = case method_ary[field][:args]
|
||||
when nil # no args
|
||||
get_data_link(method_ary[field][:method], options)
|
||||
|
|
Loading…
Reference in New Issue