summaryrefslogtreecommitdiffstats
path: root/install/ui/entity.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-06-29 09:26:49 -0400
committerAdam Young <ayoung@redhat.com>2011-06-29 17:09:57 -0400
commitb8b2ac53573620711ce1acfce34a919ffa23e143 (patch)
treec55df575254b663889e7f15332e6798bfeff9a17 /install/ui/entity.js
parent66eeaceb8cc50902b408e5c97c6d04e59e57f97a (diff)
downloadfreeipa-b8b2ac53573620711ce1acfce34a919ffa23e143.tar.gz
freeipa-b8b2ac53573620711ce1acfce34a919ffa23e143.tar.xz
freeipa-b8b2ac53573620711ce1acfce34a919ffa23e143.zip
containing entity pkeys
Instead of looking for a match on the entity name, use the nesting structure of containing entites to grab their pkeys. Code review fixes https://fedorahosted.org/freeipa/ticket/674
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r--install/ui/entity.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js
index c04f85d6d..7fa00f1fa 100644
--- a/install/ui/entity.js
+++ b/install/ui/entity.js
@@ -597,7 +597,12 @@ IPA.entity = function (spec) {
pkey.unshift(IPA.nav.get_state(current_entity.name+'-pkey'));
return pkey;
};
-
+ /* most entites only require -pkey for their primary keys, but some
+ are more specific. This call allows those entites a place
+ to override the other parameters. */
+ that.get_key_names = function() {
+ return [that.name + '-pkey'];
+ };
that.entity_init = that.init;