From 75f8dac25af8ef7cf76df7500d11b958256fa45c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 9 Oct 2014 01:53:54 -0400 Subject: [PATCH] API explorer - fix getfields action select --- templates/CRM/Admin/Page/APIExplorer.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/templates/CRM/Admin/Page/APIExplorer.js b/templates/CRM/Admin/Page/APIExplorer.js index e530b27a49..2df88070ab 100644 --- a/templates/CRM/Admin/Page/APIExplorer.js +++ b/templates/CRM/Admin/Page/APIExplorer.js @@ -86,12 +86,7 @@ id: 'api_action', text: 'Action' }); - options.api_action = []; - $('option', '#api-action').each(function() { - if (this.value) { - options.api_action.push({key: this.value, value: $(this).text()}); - } - }); + options.api_action = _.transform(actions, function(ret, item) {ret.push({value: item, key: item})}); showFields(['api_action']); return; } -- 2.25.1