CRM-17819 - Api explorer - fix field name parsing
authorColeman Watts <coleman@civicrm.org>
Thu, 14 Jan 2016 17:47:07 +0000 (12:47 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 14 Jan 2016 17:47:07 +0000 (12:47 -0500)
templates/CRM/Admin/Page/APIExplorer.js

index 128e880242b5440b2f7a8c8c6cce3056162f034d..4c670e43bcac88d0664d60a799ac3f8f329bebc2 100644 (file)
@@ -94,6 +94,9 @@
    * @returns {*}
    */
   function getField(name) {
+    if (!name) {
+      return {};
+    }
     if (getFieldData[name]) {
       return getFieldData[name];
     }