Skip to content

Commit

Permalink
Merge pull request from GHSA-jrgf-vfw2-hj26
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-netalico committed Oct 20, 2020
1 parent 9d38347 commit 26433d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/code/core/Mage/Catalog/Model/Product/Attribute/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ public function remove($attribute)
$this->_fault('can_not_delete');
}

if (!$model->getIsUserDefined()) {
$this->_fault('can_not_delete');
}

try {
$model->delete();
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ protected function _afterLoad()

foreach ($this as $product) {
if ($product->isRecurring() && $profile = $product->getRecurringProfile()) {
$product->setRecurringProfile(unserialize($profile));
$product->setRecurringProfile(Mage::helper('core/unserializeArray')->unserialize($profile));
}
}

Expand Down

0 comments on commit 26433d1

Please sign in to comment.