summaryrefslogtreecommitdiffstats
path: root/install/ui/dialog.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-11-07 14:21:45 -0600
committerPetr Vobornik <pvoborni@redhat.com>2011-12-21 14:59:49 +0100
commit5fc064f13e44812042a617a322bcd6111d2b39b2 (patch)
treef89503069c5d4eabbb940aff34b9733607ce93d2 /install/ui/dialog.js
parent49e5555b11d0bee814bce807acacbfeb381379f1 (diff)
downloadfreeipa-5fc064f13e44812042a617a322bcd6111d2b39b2.tar.gz
freeipa-5fc064f13e44812042a617a322bcd6111d2b39b2.tar.xz
freeipa-5fc064f13e44812042a617a322bcd6111d2b39b2.zip
Refactored entity object resolution.
The IPA.get_entity() has been modified to accept either entity name or entity object. If it receives an entity object it will return the object itself. Otherwise, it will resolve the name in the entity registry. The other_entity variables have been modified to store a reference to the entity object instead of its name. The test cases have been modified to use real entity objects instead of just the names. Ticket #2042
Diffstat (limited to 'install/ui/dialog.js')
-rw-r--r--install/ui/dialog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/ui/dialog.js b/install/ui/dialog.js
index 8128452df..e6e6e1cd2 100644
--- a/install/ui/dialog.js
+++ b/install/ui/dialog.js
@@ -59,7 +59,7 @@ IPA.dialog = function(spec) {
var that = {};
- that.entity = spec.entity;
+ that.entity = IPA.get_entity(spec.entity);
that.name = spec.name;
that.id = spec.id;
that.title = spec.title;