fix get enable_manually_sort nil error
This commit is contained in:
parent
b3dbabef5b
commit
553fb82adc
|
@ -178,7 +178,6 @@ module AnnouncementsHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def sort_announcements(announcements)
|
def sort_announcements(announcements)
|
||||||
enable_manually_sort = enable_manually_sort
|
|
||||||
if enable_manually_sort
|
if enable_manually_sort
|
||||||
announcements = announcements.sort_by { |announcement|
|
announcements = announcements.sort_by { |announcement|
|
||||||
tmp1 = announcement["postdate"].blank?
|
tmp1 = announcement["postdate"].blank?
|
||||||
|
|
Loading…
Reference in New Issue