Skip to content

Commit 4741401

Browse files
authored
ENGCOM-4272: [Backport] Fixed #21144 Can't change customer group when placing an admin order #21239
2 parents 994348f + 9523243 commit 4741401

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Sales/Block/Adminhtml/Order/Create/Form

1 file changed

+1
-1
lines changed

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Form/Account.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ private function extractValuesFromAttributes(array $attributes, int $storeId): a
199199
if (isset($defaultValue) && !isset($formValues[$code])) {
200200
$formValues[$code] = $defaultValue;
201201
}
202-
if ($code === 'group_id' && empty($defaultValue)) {
202+
if ($code === 'group_id' && empty($formValues[$code])) {
203203
$formValues[$code] = $this->getDefaultCustomerGroup($storeId);
204204
}
205205
}

0 commit comments

Comments
 (0)