fix error for sort announcements
This commit is contained in:
parent
763a49028d
commit
4043dfed5c
|
@ -181,7 +181,7 @@ module AnnouncementsHelper
|
||||||
announcements = announcements.sort_by { |announcement|
|
announcements = announcements.sort_by { |announcement|
|
||||||
tmp1 = announcement["postdate"].blank?
|
tmp1 = announcement["postdate"].blank?
|
||||||
[
|
[
|
||||||
-a['sort_number'].to_i,
|
-announcement['sort_number'].to_i,
|
||||||
tmp1 ? 0 : 1, tmp1 ? nil : announcement["postdate"].to_time
|
tmp1 ? 0 : 1, tmp1 ? nil : announcement["postdate"].to_time
|
||||||
]
|
]
|
||||||
}.reverse
|
}.reverse
|
||||||
|
|
Loading…
Reference in New Issue