From e328e1eb125797d337d7c27433ef9782dcc9d25e Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 17 Oct 2024 01:21:38 +0000 Subject: [PATCH] fix error for sort event news --- app/helpers/event_news_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/event_news_helper.rb b/app/helpers/event_news_helper.rb index 8967748..303a29f 100644 --- a/app/helpers/event_news_helper.rb +++ b/app/helpers/event_news_helper.rb @@ -241,7 +241,7 @@ module EventNewsHelper tmp1 = event_news["event_date"].blank? tmp2 = event_news["postdate"].blank? [ - (@show_today_data_first ? a['sort_number'].to_i : -a['sort_number'].to_i), + (@show_today_data_first ? event_news['sort_number'].to_i : -event_news['sort_number'].to_i), tmp1 ? 0 : 1, tmp1 ? nil : event_news["event_date"].to_time, tmp2 ? 0 : 1, tmp2 ? nil : event_news["postdate"].to_time ]