diff options
author | Petr Vobornik <[email protected]> | 2014-09-02 17:11:52 +0200 |
---|---|---|
committer | Martin Kosek <[email protected]> | 2014-09-05 15:10:47 +0200 |
commit | 2fd4f40e361f4acb9b3383533432bfe90dbefe0f (patch) | |
tree | 8f268477c469a67a37b92df404a71dee48cb0fef /install | |
parent | a28d9b8f0a87633ac298676f47eadf0d7dc31cfb (diff) | |
download | freeipa-2fd4f40e361f4acb9b3383533432bfe90dbefe0f.tar.gz freeipa-2fd4f40e361f4acb9b3383533432bfe90dbefe0f.tar.xz freeipa-2fd4f40e361f4acb9b3383533432bfe90dbefe0f.zip |
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 <[email protected]>
Diffstat (limited to 'install')
-rw-r--r-- | install/ui/src/freeipa/add.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/install/ui/src/freeipa/add.js b/install/ui/src/freeipa/add.js index 78f3890ad..7f5c29807 100644 --- a/install/ui/src/freeipa/add.js +++ b/install/ui/src/freeipa/add.js @@ -166,12 +166,13 @@ IPA.entity_adder_dialog = function(spec) { function show_edit_page(entity,result) { var pkey_name = entity.metadata.primary_key; var pkey = result[pkey_name]; - if (pkey instanceof Array) { - pkey = pkey[0]; + if (!(pkey instanceof Array)) { + pkey = [pkey]; } + rpc.extract_objects(pkey); var pkeys = that.pkey_prefix.slice(0); - pkeys.push(pkey); + pkeys.push(pkey[0]); navigation.show_entity(that.entity.name, 'default', pkeys); } |