diff options
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r-- | install/ui/entity.js | 10 |
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); |