From ca0231a0688aedbb2924d1380ce643cb61044e40 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 15 Jun 2018 23:09:19 -0400 Subject: [PATCH] Fix typo in api explorer sample code --- templates/CRM/Admin/Page/APIExplorer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/CRM/Admin/Page/APIExplorer.js b/templates/CRM/Admin/Page/APIExplorer.js index 0951b924aa..7d85e83586 100644 --- a/templates/CRM/Admin/Page/APIExplorer.js +++ b/templates/CRM/Admin/Page/APIExplorer.js @@ -576,7 +576,6 @@ /** * Format value to look like php code - * TODO: Use short array syntax when we drop support for php 5.3 * @param val */ function phpFormat(val) { @@ -736,7 +735,7 @@ q.php += "]"; q.json += "\n}"; } - q.php += "];"; + q.php += ");"; q.json += ").done(function(result) {\n // do something\n});"; q.smarty += "}\n{foreach from=$result.values item=" + entity.toLowerCase() + "}\n {$" + entity.toLowerCase() + ".some_field}\n{/foreach}"; if (!_.includes(action, 'get')) { -- 2.25.1