From 2028a4095d00054fb2015ab38d1f3720ea105e13 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 27 Sep 2011 10:00:27 +0200 Subject: Fixed: Enrolment dialog offers to add entity to reflexive association. https://fedorahosted.org/freeipa/ticket/1883 It's a regression introduced by patch for #1797 Reproduce: * show user group foo * click on user groups tab * click on enroll button Result: User group 'foo' is listed in available list. Expected result: User group 'foo' is not listed in available list. --- install/ui/association.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'install/ui/association.js') diff --git a/install/ui/association.js b/install/ui/association.js index 47d8db173..f2ef11dac 100644 --- a/install/ui/association.js +++ b/install/ui/association.js @@ -180,10 +180,12 @@ IPA.association_adder_dialog = function(spec) { var selected = that.get_selected_values(); var results = data.result; + var same_entity = that.entity.name === other_entity.name; for (var i=0; i= 0) continue; if (selected.indexOf(pkey) >= 0) continue; -- cgit