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 4559910 commit b9d4344Copy full SHA for b9d4344
app/code/Magento/Customer/Model/Metadata/Form/File.php
@@ -323,6 +323,9 @@ public function compactValue($value)
323
if (!empty($this->_value) && !empty($value['delete'])) {
324
$this->fileProcessor->removeUploadedFile($this->_value);
325
return $value;
326
+ } else if ($this->_entityTypeCode == 'customer' && empty($value) && !empty($this->_value)) {
327
+ $this->fileProcessor->removeUploadedFile($this->_value);
328
+ return $value;
329
}
330
331
if ($value && is_string($value) && $this->fileProcessor->isExist($value)) {
0 commit comments