[Freeipa-devel] [PATCH] admiyo-0193- allow-null-keys-for-show

2011-02-11 Thread Adam Young


From 3ddcb0e3131f747d81b1a8dfda8078c9739c6f11 Mon Sep 17 00:00:00 2001
From: Adam Young ayo...@redhat.com
Date: Fri, 11 Feb 2011 15:36:29 -0500
Subject: [PATCH] allow null keys for show

https://fedorahosted.org/freeipa/ticket/951
---
 install/ui/details.js |   12 
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/install/ui/details.js b/install/ui/details.js
index b62f049419b819def729bc75d89b1d9a6aa999e1..0c68fe4c4136a6b532315627e8a2fbba70a9809a 100644
--- a/install/ui/details.js
+++ b/install/ui/details.js
@@ -536,14 +536,18 @@ IPA.details_refresh = function() {
 
 var that = this;
 
-that.pkey = $.bbq.getState(that.entity_name + '-pkey', true) || '';
+that.pkey = $.bbq.getState(that.entity_name + '-pkey', true) ;
 
 var command = IPA.command({
-'method': that.entity_name+'_show',
-'args': [that.pkey],
-'options': { 'all': true, 'rights': true }
+method: that.entity_name+'_show',
+args:  [],
+options: { 'all': true, 'rights': true }
 });
 
+if (that.pkey){
+command.args =  [that.pkey];
+}
+
 command.on_success = function(data, text_status, xhr) {
 that.load(data.result.result);
 };
-- 
1.7.3.5

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

Re: [Freeipa-devel] [PATCH] admiyo-0193- allow-null-keys-for-show

2011-02-11 Thread Endi Sukma Dewata

On 2/11/2011 2:38 PM, Adam Young wrote:




ACK and pushed to master.

--
Endi S. Dewata

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