fix default widget link failed
This commit is contained in:
1 parent
3de4591413
commit
28f0df5da8
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user