mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
🎨 N°8772 - CS Fixer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user