Fix bug.
This commit is contained in:
parent
1fb55becdf
commit
5441d0a45c
|
@ -5,7 +5,7 @@ class Admin::CalendarsController < OrbitAdminController
|
||||||
def index
|
def index
|
||||||
@events = []
|
@events = []
|
||||||
tags = @module_app.tags
|
tags = @module_app.tags
|
||||||
categories = @module_app.categories
|
categories = CalendarType.all
|
||||||
@filter_fields = {
|
@filter_fields = {
|
||||||
:category=>categories.map{|c| {:title=>(c.title.blank? ? " " : c.title), :id=>c.id}},
|
: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}}
|
:tags=>tags.map{|tag| {:title=>(tag.name.blank? ? " " : tag.name), :id=>tag.id}}
|
||||||
|
|
Loading…
Reference in New Issue