Skip to content

Commit b5a64c7

Browse files
committed
Customer Attributes Options with option group fixed
1 parent 6cd10d7 commit b5a64c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Customer/Ui/Component/Listing/AttributeRepository.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,13 @@ protected function getOptionArray(array $options)
143143
{
144144
/** @var \Magento\Customer\Api\Data\OptionInterface $option */
145145
foreach ($options as &$option) {
146+
$value = $option->getValue();
147+
if ($option->getOptions()) {
148+
$value = $this->getOptionArray($option->getOptions());
149+
}
146150
$option = [
147151
'label' => (string)$option->getLabel(),
148-
'value' => $option->getValue(),
152+
'value' => $value,
149153
'__disableTmpl' => true
150154
];
151155
}

0 commit comments

Comments
 (0)