From 8d3362d8c01abaee07cf6c76c541d327083630b5 Mon Sep 17 00:00:00 2001 From: Bohung Date: Fri, 22 Apr 2022 14:37:14 +0800 Subject: [PATCH] Fix bug. --- app/helpers/admin/event_news_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/admin/event_news_helper.rb b/app/helpers/admin/event_news_helper.rb index 020714a..e05ef1a 100644 --- a/app/helpers/admin/event_news_helper.rb +++ b/app/helpers/admin/event_news_helper.rb @@ -83,7 +83,7 @@ module Admin::EventNewsHelper def page_for_event_news(event_news) ann_page = nil - pages = Page.where(:module=>'event_news') + pages = Page.where(:module=>'event_news_mod') pages.each do |page| if page.categories.count ==1