Skip to content

Commit

Permalink
Fixed History_Data getContent method for models with constructor para…
Browse files Browse the repository at this point in the history
…meters
  • Loading branch information
midlan committed Jun 3, 2020
1 parent b892c01 commit 3e7acd3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public function getSerializedContent()
public function getContent()
{
// have to re-load the model as based on database datatypes the format of values changes
$className = get_class($this->_savedModel);
$model = new $className;
$model = clone $this->_savedModel;
$model->setData(array());

// Add store id if given
if ($storeId = $this->_savedModel->getStoreId()) {
Expand Down

0 comments on commit 3e7acd3

Please sign in to comment.