Skip to content

Commit 7a039a6

Browse files
authored
Fix file delete of customer attribute (#927)
* Insert whitespace in class name for styling to work. See pull request #594 Remove whitespace in addBodyClass($className)#594 * Fix file delete in customer attribute of `frontend_input` = 'file'.
1 parent 092e7cf commit 7a039a6

File tree

1 file changed

+3
-0
lines changed
  • app/code/core/Mage/Eav/Model/Attribute/Data

1 file changed

+3
-0
lines changed

app/code/core/Mage/Eav/Model/Attribute/Data/File.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ public function validateValue($value)
172172
}
173173

174174
if (!$attribute->getIsRequired() && !$toUpload) {
175+
if ($toDelete) {
176+
$attribute->setAttributeValidationAsPassed();
177+
}
175178
return true;
176179
}
177180

0 commit comments

Comments
 (0)