This commit is contained in:
BoHung Chiu 2022-07-11 11:22:29 +08:00
parent 1fb55becdf
commit 5441d0a45c
1 changed files with 1 additions and 1 deletions

View File

@ -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}}