fixing bulletin default widget

This commit is contained in:
Matthew K. Fu JuYuan 2013-09-02 17:24:28 +08:00
parent e7aa7ea1fa
commit 915ea066d6
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ module OrbitApp
def initialize(&block)
@query = nil
@image = nil
@sorting_query = nil
@sorting_query = 'desc(:created_at)'
@more_link = {}
@fields = []
@enabled_styles = STYLE

View File

@ -29,7 +29,7 @@ module Announcement
widgets do
default_widget do
sorting 'desc(:created_at)'
sorting 'desc(:postdate)'
query 'Bulletin.any_of( {deadline: nil,:postdate.lte => Time.now} , {:deadline.gte => Time.now,:postdate.lte => Time.now} )'
enable ["typeA","typeB_style3","typeC"]
image :image