Skip to content

Commit ca352f7

Browse files
committed
Can't upload image for custom customer address attribute magento#39720
1 parent 9608ca2 commit ca352f7

File tree

1 file changed

+6
-1
lines changed
  • app/code/Magento/Customer/Controller/Adminhtml/Address

1 file changed

+6
-1
lines changed

app/code/Magento/Customer/Controller/Adminhtml/Address/Validate.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@ public function execute(): Json
109109
*/
110110
private function validateCustomerAddress(DataObject $response): DataObject
111111
{
112-
$addressForm = $this->formFactory->create('customer_address', 'adminhtml_customer_address');
112+
$addressForm = $this->formFactory->create(
113+
'customer_address',
114+
'adminhtml_customer_address',
115+
[],
116+
true
117+
);
113118
$formData = $addressForm->extractData($this->getRequest());
114119

115120
$errors = $addressForm->validateData($formData);

0 commit comments

Comments
 (0)