-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for development
Description
Preconditions
- Magento 2.1.7 EE
- PHP 7.0.20
Steps to reproduce
- Call method
\Magento\Customer\Model\Customer\Source\Group::toOptionArray
Expected result
- All
$customerGroups['value']
should be of type string
Actual result
- First customer group value (
\Magento\Customer\Api\Data\GroupInterface::CUST_GROUP_ALL
) is integer
Solution
- Cast
GroupInterface::CUST_GROUP_ALL
to string
'value' => GroupInterface::CUST_GROUP_ALL, |
When using the result of \Magento\Customer\Model\Customer\Source\Group::toOptionArray
as options in an (multiselect) attribute source model, the respective customer group CUST_GROUP_ALL
is not getting selected in the Magento Admin-Panel despite the value of the group being set.
Metadata
Metadata
Assignees
Labels
Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for development