We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e26bd9 commit c323afcCopy full SHA for c323afc
app/code/Magento/Customer/Controller/Account/EditPost.php
@@ -212,10 +212,12 @@ public function execute()
212
);
213
214
$attributeToDelete = $this->_request->getParam('delete_attribute_value');
215
- $this->deleteCustomerFileAttribute(
216
- $customerCandidateDataObject,
217
- $attributeToDelete
218
- );
+ if ($attributeToDelete !== null) {
+ $this->deleteCustomerFileAttribute(
+ $customerCandidateDataObject,
+ $attributeToDelete
219
+ );
220
+ }
221
222
try {
223
// whether a customer enabled change email option
0 commit comments