fix default widget link failed

This commit is contained in:
Matt K. Fu 2013-04-03 18:05:12 +08:00
parent a85d1f938c
commit 0a7c43bbb9
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ module DefaultWidgetHelper
def link_to_field(row_data,field, switch, options=nil) def link_to_field(row_data,field, switch, options=nil)
method_ary = @page_part.module_app.widget_fields_link_method method_ary = @page_part.module_app.widget_fields_link_method
field = field.to_sym 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] url = case method_ary[field][:args]
when nil # no args when nil # no args
get_data_link(method_ary[field][:method], options) get_data_link(method_ary[field][:method], options)