mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
webui: extract complex pkey on Add and Edit
DNS zone 'Add and Edit' failed because of new DNS name encoding. This patch makes sure that keys are extracted properly. https://fedorahosted.org/freeipa/ticket/4520 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
parent
a28d9b8f0a
commit
2fd4f40e36
@ -166,12 +166,13 @@ IPA.entity_adder_dialog = function(spec) {
|
|||||||
function show_edit_page(entity,result) {
|
function show_edit_page(entity,result) {
|
||||||
var pkey_name = entity.metadata.primary_key;
|
var pkey_name = entity.metadata.primary_key;
|
||||||
var pkey = result[pkey_name];
|
var pkey = result[pkey_name];
|
||||||
if (pkey instanceof Array) {
|
if (!(pkey instanceof Array)) {
|
||||||
pkey = pkey[0];
|
pkey = [pkey];
|
||||||
}
|
}
|
||||||
|
rpc.extract_objects(pkey);
|
||||||
|
|
||||||
var pkeys = that.pkey_prefix.slice(0);
|
var pkeys = that.pkey_prefix.slice(0);
|
||||||
pkeys.push(pkey);
|
pkeys.push(pkey[0]);
|
||||||
navigation.show_entity(that.entity.name, 'default', pkeys);
|
navigation.show_entity(that.entity.name, 'default', pkeys);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user