From 0a7c43bbb96e7f91bd6ecb76f60733093473feaa Mon Sep 17 00:00:00 2001 From: "Matt K. Fu" Date: Wed, 3 Apr 2013 18:05:12 +0800 Subject: [PATCH] fix default widget link failed --- app/helpers/default_widget_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/default_widget_helper.rb b/app/helpers/default_widget_helper.rb index 7ae289465..c0f55452f 100644 --- a/app/helpers/default_widget_helper.rb +++ b/app/helpers/default_widget_helper.rb @@ -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)