From 0b14da0fd8909c759467092bde5fb5b02d3f638f Mon Sep 17 00:00:00 2001 From: Spen Date: Mon, 7 Oct 2013 15:09:27 +0800 Subject: [PATCH] announcement init sorting fix --- vendor/built_in_modules/announcement/init.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/built_in_modules/announcement/init.rb b/vendor/built_in_modules/announcement/init.rb index 420b3cf3a..088cee7b3 100644 --- a/vendor/built_in_modules/announcement/init.rb +++ b/vendor/built_in_modules/announcement/init.rb @@ -29,7 +29,7 @@ module Announcement widgets do default_widget do - sorting 'desc(:postdate)' + sorting 'desc(:is_top, :postdate)' query 'Bulletin.can_display.available_for_lang(I18n.locale).any_of( {deadline: nil,:postdate.lte => Time.now} , {:deadline.gte => Time.now,:postdate.lte => Time.now} )' enable ["typeA","typeB_style3","typeC"] image :image