Re: [Freeipa-devel] [PATCH] 748 webui: extract complex pkey on Add and Edit

2014-09-05 Thread Martin Kosek
On 09/04/2014 12:53 AM, Endi Sukma Dewata wrote:
> On 9/2/2014 10:15 AM, Petr Vobornik wrote:
>> 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
> 
> ACK.
> 

Pushed to:
master: c50dff22827cefbb0b0838bf7e9b1e3fcf8752c0
ipa-4-1: 2fd4f40e361f4acb9b3383533432bfe90dbefe0f
ipa-4-0: 3e987f6973314e4265f5f18723916b89e13cd1c6

Martin

___
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel


Re: [Freeipa-devel] [PATCH] 748 webui: extract complex pkey on Add and Edit

2014-09-03 Thread Endi Sukma Dewata

On 9/2/2014 10:15 AM, Petr Vobornik wrote:

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


ACK.

--
Endi S. Dewata

___
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel


[Freeipa-devel] [PATCH] 748 webui: extract complex pkey on Add and Edit

2014-09-02 Thread Petr Vobornik

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
--
Petr Vobornik
From 686ac549bf92822a9c9692e58a89e41665faab08 Mon Sep 17 00:00:00 2001
From: Petr Vobornik 
Date: Tue, 2 Sep 2014 17:11:52 +0200
Subject: [PATCH] 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
---
 install/ui/src/freeipa/add.js | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/install/ui/src/freeipa/add.js b/install/ui/src/freeipa/add.js
index 78f3890ad2320cbc3afd5cb9ae1e4ae2359d8023..7f5c29807bae8cc9db00e4e826a68facd1e5758a 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);
 }
 
-- 
1.9.3

___
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel