Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Moved parent call
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwin Jacobs committed Sep 18, 2019
1 parent 012bc8d commit 8ca90c2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,13 @@ protected function _afterLoad(Mage_Core_Model_Abstract $object)
*/
protected function _beforeSave(Mage_Core_Model_Abstract $object)
{
parent::_beforeSave($object);
// Trim leading and trailing slashes
$urlPath = $object->getData('url_path');
$urlPath = trim($urlPath, '/');

$object->setData('url_path', $urlPath);

return $this;
return parent::_beforeSave($object);
}

/**
Expand Down

0 comments on commit 8ca90c2

Please sign in to comment.