allow null keys for show

https://fedorahosted.org/freeipa/ticket/951
This commit is contained in:
Adam Young authored and Endi S. Dewata committed 2011-02-11 15:47:53 -05:00
1 parent d14ef576c3
commit f1e46f36d2
1 file changed
+8 -4
+8 -4
View File
@@ -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);
};