From 59d99eab2d574a57f50738af43b30984d89620be Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 28 Jan 2016 21:15:19 -0500 Subject: [PATCH] Api explorer - fix javascript error --- templates/CRM/Admin/Page/APIExplorer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Admin/Page/APIExplorer.js b/templates/CRM/Admin/Page/APIExplorer.js index 3696c7ce61..62f2fe5b2d 100644 --- a/templates/CRM/Admin/Page/APIExplorer.js +++ b/templates/CRM/Admin/Page/APIExplorer.js @@ -82,7 +82,7 @@ description: field.description || '', required: !(!field['api.required'] || field['api.required'] === '0') }); - if (joins[name]) { + if (typeof joins[name] === 'string') { fields[pos].children = []; populateFields(fields[pos].children, joins[name], 'get', name + '.'); } -- 2.25.1