From 870e430b653988e8f155a31e7214480b8af5cf13 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 29 Jun 2011 13:42:13 -0400 Subject: undefined pkeys https://fedorahosted.org/freeipa/ticket/1399 Thereis not metatdata defined pkey for config, so we need to short circuit the logic that uses the metatdata pkey to look up the key from the hashurl. --- install/ui/entity.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'install/ui/entity.js') diff --git a/install/ui/entity.js b/install/ui/entity.js index 7fa00f1fa..82edb7bbe 100644 --- a/install/ui/entity.js +++ b/install/ui/entity.js @@ -584,7 +584,11 @@ IPA.entity = function (spec) { var current_entity = that; current_entity = current_entity.containing_entity; while(current_entity !== null){ - pkey.unshift(IPA.nav.get_state(current_entity.name+'-pkey')); + + var key = IPA.nav.get_state(current_entity.name+'-pkey'); + if (key){ + pkey.unshift(key); + } current_entity = current_entity.containing_entity; } return pkey; -- cgit