Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Modify attributes only from product attribute set #350

Open
wants to merge 1 commit into
base: 1.0.0-wip-edge
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion app/code/community/BL/CustomGrid/Model/Grid/Editor/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,15 @@ public function loadEditedProduct($entityId, BL_CustomGrid_Model_Grid_Editor_Con

/** @var Mage_Catalog_Model_Product $product */
$product = Mage::getModel('catalog/product');
$product->setStoreId($storeId)->setData('_edit_mode', true)->load($entityId);
$product->setStoreId($storeId)->setData('_edit_mode', true);

/**
* Reset cached attributes in resource singleton and load new from product attributes set
*/
$product->getResource()
->unsetAttributes();

$product->load($entityId);

return $product;
}
Expand Down