From 5441d0a45ca07a0ac65e33930b05247c7fb29bac Mon Sep 17 00:00:00 2001 From: bohung Date: Mon, 11 Jul 2022 11:22:29 +0800 Subject: [PATCH] Fix bug. --- app/controllers/admin/calendars_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/calendars_controller.rb b/app/controllers/admin/calendars_controller.rb index 3792799..5ca2bbb 100644 --- a/app/controllers/admin/calendars_controller.rb +++ b/app/controllers/admin/calendars_controller.rb @@ -5,7 +5,7 @@ class Admin::CalendarsController < OrbitAdminController def index @events = [] tags = @module_app.tags - categories = @module_app.categories + categories = CalendarType.all @filter_fields = { :category=>categories.map{|c| {:title=>(c.title.blank? ? " " : c.title), :id=>c.id}}, :tags=>tags.map{|tag| {:title=>(tag.name.blank? ? " " : tag.name), :id=>tag.id}}