Skip to content

Customer group CUST_GROUP_ALL not selected in adminhtml after attribute save #10436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mashb1t opened this issue Aug 4, 2017 · 1 comment
Closed
Labels
Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@mashb1t
Copy link
Member

mashb1t commented Aug 4, 2017

Preconditions

  1. Magento 2.1.7 EE
  2. PHP 7.0.20

Steps to reproduce

  1. Call method \Magento\Customer\Model\Customer\Source\Group::toOptionArray

Expected result

  1. All $customerGroups['value'] should be of type string

Actual result

  1. First customer group value (\Magento\Customer\Api\Data\GroupInterface::CUST_GROUP_ALL) is integer

Solution

  1. 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.

@magento-team
Copy link
Contributor

Internal ticket to track issue progress: MAGETWO-71432

@magento-team magento-team added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development develop labels Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

2 participants