🐛 bug fix: do not create empty option values

This commit is contained in:
Marc Michalsky 2023-08-14 16:50:25 +02:00
parent de19c3991c
commit c45f275fc3
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
2 changed files with 1 additions and 1 deletions

View file

@ -243,6 +243,7 @@ class CRM_TwingleCampaign_BAO_CustomField {
[
'id' => $option_value_exists['values'][0]['id'],
'label' => $value,
'value' => $value,
]
);
}

View file

@ -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,