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