Api explorer - fix javascript error
authorColeman Watts <coleman@civicrm.org>
Fri, 29 Jan 2016 02:15:19 +0000 (21:15 -0500)
committerColeman Watts <coleman@civicrm.org>
Fri, 29 Jan 2016 02:15:19 +0000 (21:15 -0500)
templates/CRM/Admin/Page/APIExplorer.js

index 3696c7ce6190b1322b82422d14b71c3913ced8b7..62f2fe5b2dd677b5ed6493a593519af65899dc51 100644 (file)
@@ -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 + '.');
       }