Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Petrini committed Sep 8, 2020
1 parent ff4f46a commit 6de1a99
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ class Mage_Catalog_Model_Category_Attribute_Backend_Image extends Mage_Eav_Model
public function afterSave($object)
{
$value = $object->getData($this->getAttribute()->getName());
if (empty($value) && empty($_FILES)) {
return $this;
}

if (is_array($value) && !empty($value['delete'])) {
$object->setData($this->getAttribute()->getName(), '');
Expand Down

0 comments on commit 6de1a99

Please sign in to comment.