From b8aee61631d5040f2d1f1432f457ca5ab0d58764 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 18 Nov 2015 17:58:05 -0500 Subject: [PATCH] Api explorer - fix getfields action list --- templates/CRM/Admin/Page/APIExplorer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Admin/Page/APIExplorer.js b/templates/CRM/Admin/Page/APIExplorer.js index 3e24961063..d9e04c5339 100644 --- a/templates/CRM/Admin/Page/APIExplorer.js +++ b/templates/CRM/Admin/Page/APIExplorer.js @@ -132,12 +132,14 @@ if (action === 'getfields') { fields.push({ id: 'api_action', - text: 'Action', + text: ts('Action') + }); + getFieldData.api_action = { options: _.reduce(actions.values, function(ret, item) { ret[item] = item; return ret; }, {}) - }); + }; showFields(['api_action']); return; } -- 2.25.1