Fix query in default widget for tags

This commit is contained in:
chris 2013-02-07 16:48:12 +08:00
parent f5728a4f92
commit 324ab266af
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class DefaultWidgetController< OrbitWidgetController
if params["category_id"].blank?
result = @tag.send(ori_class_name.downcase.pluralize)
else
result = @tag.send(ori_class_name.downcase.pluralize).where(:category_id=>params["category_id"])
result = @tag.send(ori_class_name.downcase.pluralize).where(get_category_field_name(ori_class_name) => params['category_id'])
end
elsif params["category_id"].blank?
result = eval(@default_widget["query"])