From da4bf7c9eabef12cf0a84585822ab3d8390cb29e Mon Sep 17 00:00:00 2001
From: Endi S. Dewata <edewata@redhat.com>
Date: Tue, 30 Aug 2011 13:45:13 -0500
Subject: [PATCH] Fixed problem adding hostgroup into netgroup.

The memberof_netgroup association facet for hostgroup has been
explicitly defined to use the serial associator so it will invoke
the right methods.

Ticket #1737
---
 install/ui/hostgroup.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/install/ui/hostgroup.js b/install/ui/hostgroup.js
index cad77a7a59f9507b38100f26ae4ef2334789a0e4..45420340f9fce06297fc54a952ffb8bf95de6c23 100644
--- a/install/ui/hostgroup.js
+++ b/install/ui/hostgroup.js
@@ -38,6 +38,10 @@ IPA.entity_factories.hostgroup = function() {
             associator: IPA.serial_associator
         }).
         association_facet({
+            name: 'memberof_netgroup',
+            associator: IPA.serial_associator
+        }).
+        association_facet({
             name: 'memberof_hbacrule',
             associator: IPA.serial_associator,
             add_method: 'add_host',
-- 
1.7.5.1

