From ff7aafc961c77565b12643b414152f8100fea1e0 Mon Sep 17 00:00:00 2001 From: colemanw Date: Mon, 21 Aug 2023 14:05:19 -0400 Subject: [PATCH] APIv4 Explorer - Keep list of suffixes in-sync --- CRM/Api4/Page/Api4Explorer.php | 1 + ang/api4Explorer/Explorer.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Api4/Page/Api4Explorer.php b/CRM/Api4/Page/Api4Explorer.php index 0b03bc9725..7f4ef62122 100644 --- a/CRM/Api4/Page/Api4Explorer.php +++ b/CRM/Api4/Page/Api4Explorer.php @@ -30,6 +30,7 @@ class CRM_Api4_Page_Api4Explorer extends CRM_Core_Page { 'docs' => \Civi\Api4\Utils\ReflectionUtils::parseDocBlock($apiDoc->getDocComment()), 'functions' => CoreUtil::getSqlFunctions(), 'authxEnabled' => $extensions->isActiveModule('authx'), + 'suffixes' => \Civi\Api4\Utils\FormattingUtil::$pseudoConstantSuffixes, 'restUrl' => rtrim(CRM_Utils_System::url('civicrm/ajax/api4/CRMAPI4ENTITY/CRMAPI4ACTION', NULL, TRUE, NULL, FALSE, TRUE), '/'), ]; Civi::resources() diff --git a/ang/api4Explorer/Explorer.js b/ang/api4Explorer/Explorer.js index 5e13dcb626..48180a0f1d 100644 --- a/ang/api4Explorer/Explorer.js +++ b/ang/api4Explorer/Explorer.js @@ -560,7 +560,7 @@ false, true, ['id', 'name', 'label'], - ['id', 'name', 'label', 'abbr', 'description', 'color', 'icon'] + CRM.vars.api4.suffixes ]; format = 'json'; defaultVal = false; -- 2.25.1