From c45f275fc3cf863be3c31a714f542233c9e7d17c Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Mon, 14 Aug 2023 16:50:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20bug=20fix:=20do=20not=20create?= =?UTF-8?q?=20empty=20option=20values?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CRM/TwingleCampaign/BAO/CustomField.php | 1 + CRM/TwingleCampaign/Utils/CaseTypes.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/TwingleCampaign/BAO/CustomField.php b/CRM/TwingleCampaign/BAO/CustomField.php index 9666d30..edeb505 100644 --- a/CRM/TwingleCampaign/BAO/CustomField.php +++ b/CRM/TwingleCampaign/BAO/CustomField.php @@ -243,6 +243,7 @@ class CRM_TwingleCampaign_BAO_CustomField { [ 'id' => $option_value_exists['values'][0]['id'], 'label' => $value, + 'value' => $value, ] ); } diff --git a/CRM/TwingleCampaign/Utils/CaseTypes.php b/CRM/TwingleCampaign/Utils/CaseTypes.php index 312a23f..b05282c 100644 --- a/CRM/TwingleCampaign/Utils/CaseTypes.php +++ b/CRM/TwingleCampaign/Utils/CaseTypes.php @@ -8,7 +8,6 @@ use CRM_TwingleCampaign_ExtensionUtil as E; * @return array */ function getCaseTypes(): array { - $caseTypes = [NULL => E::ts('none')]; try { $result = civicrm_api3('CaseType', 'get', [ 'sequential' => 1,