fix sorting for default widget
This commit is contained in:
parent
23516277f3
commit
1ccfd6e48c
|
@ -27,7 +27,7 @@ class DefaultWidgetController< OrbitWidgetController
|
|||
else #no tag has cate
|
||||
result = eval("#{@ori_query}.where(:#{get_category_field_name}.in=>params['category_id'])")
|
||||
end
|
||||
result.available_for_lang(I18n.locale).can_display
|
||||
result.available_for_lang(I18n.locale).can_display.desc(:created_at)
|
||||
end
|
||||
|
||||
def search_result
|
||||
|
|
Loading…
Reference in New Issue