Fixed ticket create screens.

This commit is contained in:
Martin Edenhofer 2014-11-07 00:37:05 +01:00
parent 9112850983
commit 1167f7a457
2 changed files with 15 additions and 3 deletions

View file

@ -8,7 +8,7 @@ class ObjectManagerAttributesController < ApplicationController
def list def list
return if deny_if_not_role('Admin') return if deny_if_not_role('Admin')
render :json => { render :json => {
:objects => ObjectManager.listObjects, :objects => ObjectManager.listFrontendObjects,
} }
#model_index_render(ObjectManager::Attribute, params) #model_index_render(ObjectManager::Attribute, params)
end end

View file

@ -4,14 +4,26 @@ class ObjectManager
=begin =begin
add a new activity entry for an object list all backend managed object
ObjectManager.listObjects() ObjectManager.listObjects()
=end =end
def self.listObjects def self.listObjects
['Ticket', 'TicketArticle', 'User', 'Organization' ] #, 'Group' ] ['Ticket', 'TicketArticle', 'User', 'Organization', 'Group' ]
end
=begin
list all frontend managed object
ObjectManager.listFrontendObjects()
=end
def self.listFrontendObjects
['Ticket', 'User', 'Organization' ] #, 'Group' ]
end end
end end