🎨 N°8772 - CS Fixer

This commit is contained in:
Eric Espie
2025-11-19 14:49:20 +01:00
parent 65bd6d9fd0
commit bd44f971e4
5 changed files with 9 additions and 8 deletions

View File

@@ -68,11 +68,10 @@ class AttributeChoiceFormBlock extends ChoiceFormBlock
$aAttributes = [];
foreach ($aAttributeCodes as $sAttCode) {
$oAttribute =$oModelReflection->GetLabel($sClass, $sAttCode);
$aAttributes[$oAttribute->GetLabel()] = $sAttCode;
$sLabel = $oModelReflection->GetLabel($sClass, $sAttCode);
$aAttributes[$sLabel] = $sAttCode;
}
$oOptionsRegister->SetOption('choices', $aAttributes);
}
}