🐛 bug fix: do not create empty option values
This commit is contained in:
parent
de19c3991c
commit
c45f275fc3
2 changed files with 1 additions and 1 deletions
|
@ -243,6 +243,7 @@ class CRM_TwingleCampaign_BAO_CustomField {
|
||||||
[
|
[
|
||||||
'id' => $option_value_exists['values'][0]['id'],
|
'id' => $option_value_exists['values'][0]['id'],
|
||||||
'label' => $value,
|
'label' => $value,
|
||||||
|
'value' => $value,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,6 @@ use CRM_TwingleCampaign_ExtensionUtil as E;
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
function getCaseTypes(): array {
|
function getCaseTypes(): array {
|
||||||
$caseTypes = [NULL => E::ts('none')];
|
|
||||||
try {
|
try {
|
||||||
$result = civicrm_api3('CaseType', 'get', [
|
$result = civicrm_api3('CaseType', 'get', [
|
||||||
'sequential' => 1,
|
'sequential' => 1,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue