/** * Restore old attribute value * * Backward compatibility with versions < 1.13.0.0 * * @param Varien_Object $object * @param mixed $oldAttrValue */ protected function _restoreOldAttrValue($object, $oldAttrValue) { // just use the parent in case the method change in future versions if (method_exists(get_parent_class($this), '_restoreOldAttrValue')) { parent::_restoreOldAttrValue($object, $oldAttrValue); } $attrCode = $this->getAttribute(); if (is_null($oldAttrValue)) { $object->unsetData($attrCode); } else { $object->setData($attrCode, $oldAttrValue); } }