Skip to content

Commit e464b27

Browse files
fballianoelidrissidevwoutersamaey
authored
Fixed model hasDataCchanges is true right after loading (#3243)
Co-authored-by: Mohamed ELIDRISSI <67818913+elidrissidev@users.noreply.github.com> Co-authored-by: Wouter Samaey <wouter.samaey@storefront.be>
1 parent 460ce65 commit e464b27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ public function loadByCode($entityType, $code)
145145
$this->_getResource()->loadByCode($this, $entityTypeId, $code);
146146
}
147147
$this->_afterLoad();
148+
$this->setOrigData();
149+
$this->_hasDataChanges = false;
148150
Varien_Profiler::stop('_LOAD_ATTRIBUTE_BY_CODE__');
149151
return $this;
150152
}

0 commit comments

Comments
 (0)