From a8ea42bda841c8773d68886614faf9efd38e33bd Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Wed, 16 Nov 2011 21:07:20 -0600 Subject: Fixed entity metadata resolution. The current code assumes that an entity will always have a corresponding LDAPObject on the server, so it looks for the metadata in a fixed location. This assumption doesn't work for HBAC Test since it is a Command, not an LDAPObject, so the metadata has to be obtained from a different location. A new method get_default_metadata() has been added to allow each entity to find the metadata from the correct location. Ticket #388 --- install/ui/hbac.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'install/ui/hbac.js') diff --git a/install/ui/hbac.js b/install/ui/hbac.js index cf13e459..a65ab371 100644 --- a/install/ui/hbac.js +++ b/install/ui/hbac.js @@ -33,9 +33,10 @@ IPA.hbac.rule_entity = function(spec) { var that = IPA.entity(spec); - that.init = function(params) { + that.init = function() { + that.entity_init(); - params.builder.search_facet({ + that.builder.search_facet({ search_all: true, columns: [ 'cn', @@ -60,9 +61,10 @@ IPA.hbac.service_entity = function(spec) { var that = IPA.entity(spec); - that.init = function(params) { + that.init = function() { + that.entity_init(); - params.builder.search_facet({ + that.builder.search_facet({ columns: [ 'cn', 'description' @@ -125,9 +127,10 @@ IPA.hbac.service_group_entity = function(spec) { var that = IPA.entity(spec); - that.init = function(params) { + that.init = function() { + that.entity_init(); - params.builder.search_facet({ + that.builder.search_facet({ columns: [ 'cn', 'description' -- cgit