N°8772 - Form turbo stream WIP

This commit is contained in:
Eric Espie
2025-10-28 15:34:19 +01:00
parent c2fcf4144b
commit 2a3de68652
2 changed files with 26 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ class AttributeValueChoiceFormBlock extends ChoiceFormBlock
$oAttDef = \MetaModel::GetAttributeDef(strval($oClassName), strval($oAttribute));
$aValues = $oAttDef->GetAllowedValues();
$aOptions['choices'] = array_flip($aValues);
$aOptions['choices'] = array_flip($aValues ?? []);
return $aOptions;
}