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/automount.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'install/ui/automount.js') diff --git a/install/ui/automount.js b/install/ui/automount.js index 11034ea2..8db08e38 100644 --- a/install/ui/automount.js +++ b/install/ui/automount.js @@ -29,9 +29,10 @@ IPA.automount.location_entity = function(spec) { var that = IPA.entity(spec); - that.init = function(params) { + that.init = function() { + that.entity_init(); - params.builder.facet_groups([ 'automountmap', 'settings' ]). + that.builder.facet_groups([ 'automountmap', 'settings' ]). search_facet({ title: IPA.metadata.objects.automountlocation.label, columns:['cn'] @@ -64,9 +65,10 @@ IPA.automount.map_entity = function(spec) { var that = IPA.entity(spec); - that.init = function(params) { + that.init = function() { + that.entity_init(); - params.builder.containing_entity('automountlocation'). + that.builder.containing_entity('automountlocation'). facet_groups([ 'automountkey', 'settings' ]). nested_search_facet({ facet_group: 'automountkey', @@ -153,9 +155,10 @@ IPA.automount.key_entity = function(spec) { var that = IPA.entity(spec); - that.init = function(params) { + that.init = function() { + that.entity_init(); - params.builder.containing_entity('automountmap'). + that.builder.containing_entity('automountmap'). details_facet({ sections: [ { -- cgit