From 34c5d996d760abeaede782253931ed7bc36320cc Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Wed, 1 Jun 2011 13:52:38 -0500 Subject: Temporary fix for indirect member tabs. Since the group-show command doesn't return indirect members, the tabs for group's indirect members have been reverted to call user-find with the --in-groups parameter to get the entries. However, this is only a temporary solution since the user-find command returns both direct and indirect members (ticket #1273). The Selenium test for groups has been modified to test nested groups and verify indirect members. The verification currently will fail due to the above issue. --- install/ui/entity.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'install/ui/entity.js') diff --git a/install/ui/entity.js b/install/ui/entity.js index 5df56b1a..da5b3ea6 100644 --- a/install/ui/entity.js +++ b/install/ui/entity.js @@ -818,7 +818,15 @@ IPA.entity_builder = function(){ } } - var factory = spec.factory || IPA.association_facet; + var factory = spec.factory; + if (!factory) { + if (spec.facet_group == 'memberindirect') { + factory = IPA.indirect_association_facet; + } else { + factory = IPA.association_facet; + } + } + facet = factory(spec); entity.add_facet(facet); -- cgit