From 553fb82adc627f2c9c7738d18a50827fbe3897ca Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 17 Oct 2024 03:00:02 +0000 Subject: [PATCH] fix get enable_manually_sort nil error --- app/helpers/announcements_helper.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/helpers/announcements_helper.rb b/app/helpers/announcements_helper.rb index 64af536..d7a1750 100644 --- a/app/helpers/announcements_helper.rb +++ b/app/helpers/announcements_helper.rb @@ -178,7 +178,6 @@ module AnnouncementsHelper end def sort_announcements(announcements) - enable_manually_sort = enable_manually_sort if enable_manually_sort announcements = announcements.sort_by { |announcement| tmp1 = announcement["postdate"].blank?