From 187bedafd0e261661c6368b6df90eb9d31ef9ceb Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 15 Dec 2011 13:40:29 +0100 Subject: Fixed displaying of external records in rule association widgets It's a fix for regression introduced by widget refactoring #2040. https://fedorahosted.org/freeipa/ticket/2040 --- install/ui/rule.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'install/ui/rule.js') diff --git a/install/ui/rule.js b/install/ui/rule.js index 003785bc..d36cd3d3 100644 --- a/install/ui/rule.js +++ b/install/ui/rule.js @@ -134,10 +134,14 @@ IPA.rule_association_table_field = function(spec) { spec = spec || {}; - var that = IPA.field(spec); + var that = IPA.association_table_field(spec); + + that.external = spec.external; + that.load = function(result) { that.values = result[that.name] || []; + if (that.external) { var external_values = result[that.external] || []; $.merge(that.values, external_values); -- cgit