summaryrefslogtreecommitdiffstats
path: root/install/ui/entity.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-06-01 13:52:38 -0500
committerAdam Young <ayoung@redhat.com>2011-06-02 20:09:07 -0400
commit34c5d996d760abeaede782253931ed7bc36320cc (patch)
tree27d4556fbafab47fb40f0f893d28f784d7cf6410 /install/ui/entity.js
parent7486a332211ed13318c0a689657cb4ff7e7d25a3 (diff)
downloadfreeipa-34c5d996d760abeaede782253931ed7bc36320cc.tar.gz
freeipa-34c5d996d760abeaede782253931ed7bc36320cc.tar.xz
freeipa-34c5d996d760abeaede782253931ed7bc36320cc.zip
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.
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r--install/ui/entity.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js
index 5df56b1a6..da5b3ea60 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);