announcement init sorting fix

Conflicts:

	vendor/built_in_modules/announcement/init.rb
This commit is contained in:
Spen 2013-10-07 15:09:27 +08:00 committed by Manson Wang
parent cd26b880fb
commit f9485c1f86
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ module Announcement
widgets do widgets do
default_widget do default_widget do
sorting 'desc(:postdate)' sorting 'desc(:is_top, :postdate)'
query 'Bulletin.available_for_lang(I18n.locale).any_of( {deadline: nil,:postdate.lte => Time.now} , {:deadline.gte => Time.now,:postdate.lte => Time.now} )' 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"] enable ["typeA","typeB_style3","typeC"]
image :image image :image
field :postdate field :postdate