mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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.
This commit is contained in:
committed by
Endi S. Dewata
parent
b8b2ac5357
commit
870e430b65
@@ -325,6 +325,9 @@ IPA.details_facet = function(spec) {
|
||||
pkey.push(that.pkey);
|
||||
} else {
|
||||
var pkey_name = IPA.metadata.objects[that.entity_name].primary_key;
|
||||
if (!pkey_name){
|
||||
return pkey;
|
||||
}
|
||||
var pkey_val = that.data[pkey_name];
|
||||
if (pkey_val instanceof Array) {
|
||||
pkey.push(pkey_val[0]);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user