Skip to content

Commit f358267

Browse files
committed
magento#271: [My Account] Minor fix
1 parent 7ee6a1a commit f358267

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/CustomerGraphQl/Model/Customer/GetAllowedCustomerAttributes.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ public function execute($attributeKeys, $addRequiredAttributes = false): array
8484
$customerDataDummy,
8585
CustomerInterface::class
8686
);
87+
$attributeKeys = array_merge($attributeKeys, array_keys($requiredDataAttributes));
8788
}
88-
89-
$attributeKeys = array_merge($attributeKeys, array_keys($requiredDataAttributes));
89+
9090
$this->searchCriteriaBuilder->addFilter('attribute_code', $attributeKeys, 'in');
9191
$searchCriteria = $this->searchCriteriaBuilder->create();
9292
try {

0 commit comments

Comments
 (0)