Skip to content

Commit a41c3ea

Browse files
authored
ENGCOM-4241: Fixed #21144 Can't change customer group when placing an admin order #21145
2 parents a3a994a + b72ee58 commit a41c3ea

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
@@ -203,7 +203,7 @@ private function extractValuesFromAttributes(array $attributes, int $storeId): a
203203
if (isset($defaultValue) && !isset($formValues[$code])) {
204204
$formValues[$code] = $defaultValue;
205205
}
206-
if ($code === 'group_id' && empty($defaultValue)) {
206+
if ($code === 'group_id' && empty($formValues[$code])) {
207207
$formValues[$code] = $this->getDefaultCustomerGroup($storeId);
208208
}
209209
}

0 commit comments

Comments
 (0)