Skip to content

Commit c323afc

Browse files
committed
MC-23545: Customer attribute of type file doesn't display in Account Information after created
1 parent 1e26bd9 commit c323afc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/code/Magento/Customer/Controller/Account/EditPost.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,12 @@ public function execute()
212212
);
213213

214214
$attributeToDelete = $this->_request->getParam('delete_attribute_value');
215-
$this->deleteCustomerFileAttribute(
216-
$customerCandidateDataObject,
217-
$attributeToDelete
218-
);
215+
if ($attributeToDelete !== null) {
216+
$this->deleteCustomerFileAttribute(
217+
$customerCandidateDataObject,
218+
$attributeToDelete
219+
);
220+
}
219221

220222
try {
221223
// whether a customer enabled change email option

0 commit comments

Comments
 (0)