From: Coleman Watts Date: Fri, 29 Jan 2016 02:15:19 +0000 (-0500) Subject: Api explorer - fix javascript error X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=59d99eab2d574a57f50738af43b30984d89620be;p=civicrm-core.git Api explorer - fix javascript error --- 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 + '.'); }