Fix important bug.
This commit is contained in:
parent
58b5f5509c
commit
4a584b2f8f
|
@ -220,7 +220,7 @@ module AnnouncementsHelper
|
|||
else
|
||||
all_sorted = feeds_anns.select{|v| v['is_top']}.sort{|v1,v2| v2["postdate"]<=>v1["postdate"]} + feeds_anns.select{|v| v['is_top'] != true}.sort{|v1,v2| v2["postdate"]<=>v1["postdate"]}
|
||||
end
|
||||
all_filter = filter_by_keywords(all_sorted,params[:keywords],params[:stime].params[:etime])
|
||||
all_filter = filter_by_keywords(all_sorted,params[:keywords],params[:stime],params[:etime])
|
||||
else
|
||||
all_filter = filter_by_keywords(announcements,params[:keywords],params[:stime],params[:etime])
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue