Skip to content

Commit 1fce803

Browse files
author
Mohan Ahuja
committed
ACP2E-550: Custom Customer Attributes only saves if Show on Storefront is 'Yes' for Main Website
- Updated code as per CR comments.
1 parent 69fc3c1 commit 1fce803

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Sales/Model/AdminOrder/Create.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ protected function _createCustomerForm(\Magento\Customer\Api\Data\CustomerInterf
13661366
'adminhtml_checkout',
13671367
$this->customerMapper->toFlatArray($customer),
13681368
false,
1369-
CustomerForm::IGNORE_INVISIBLE
1369+
CustomerForm::DONT_IGNORE_INVISIBLE
13701370
);
13711371

13721372
return $customerForm;
@@ -1685,7 +1685,6 @@ public function setAccountData($accountData)
16851685
$accountData['email'] = $customer->getEmail();
16861686
}
16871687
$form = $this->_createCustomerForm($customer);
1688-
$form->setInvisibleIgnored(CustomerForm::DONT_IGNORE_INVISIBLE);
16891688

16901689
// emulate request
16911690
$request = $form->prepareRequest($accountData);

0 commit comments

Comments
 (0)