Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Sep 7, 2022
1 parent cac9112 commit e8ae0cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/code/core/Mage/Catalog/Model/Product/Option/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* @package Mage_Catalog
* @author Magento Core Team <core@magentocommerce.com>
*
* @method Mage_Catalog_Model_Resource_Product_Option_Value_Collection getCollection()
* @method Mage_Catalog_Model_Resource_Product_Option_Value _getResource()
* @method Mage_Catalog_Model_Resource_Product_Option_Value getResource()
* @method int getOptionId()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,8 @@ public function addValuesToResult($storeId = null)
$optionIds[] = $option->getId();
}
if (!empty($optionIds)) {
/** @var Mage_Catalog_Model_Resource_Product_Option_Value_Collection $values */
$values = Mage::getModel('catalog/product_option_value')->getCollection();
$values
$values = Mage::getModel('catalog/product_option_value')
->getCollection()
->addTitleToResult($storeId)
->addPriceToResult($storeId)
->addOptionToFilter($optionIds)
Expand Down

0 comments on commit e8ae0cd

Please sign in to comment.