From f358267f3928e961a3078c7755e588eaf182e576 Mon Sep 17 00:00:00 2001 From: Ihor Furseyev Date: Sat, 22 Jun 2019 10:45:39 +0300 Subject: [PATCH] #271: [My Account] Minor fix --- .../Model/Customer/GetAllowedCustomerAttributes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/CustomerGraphQl/Model/Customer/GetAllowedCustomerAttributes.php b/app/code/Magento/CustomerGraphQl/Model/Customer/GetAllowedCustomerAttributes.php index 76186cc7423c2..0c715a021096b 100644 --- a/app/code/Magento/CustomerGraphQl/Model/Customer/GetAllowedCustomerAttributes.php +++ b/app/code/Magento/CustomerGraphQl/Model/Customer/GetAllowedCustomerAttributes.php @@ -84,9 +84,9 @@ public function execute($attributeKeys, $addRequiredAttributes = false): array $customerDataDummy, CustomerInterface::class ); + $attributeKeys = array_merge($attributeKeys, array_keys($requiredDataAttributes)); } - - $attributeKeys = array_merge($attributeKeys, array_keys($requiredDataAttributes)); + $this->searchCriteriaBuilder->addFilter('attribute_code', $attributeKeys, 'in'); $searchCriteria = $this->searchCriteriaBuilder->create(); try {