Commit 9eff83fc authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

# Fix auto-fulfillment of product with default values for a store view, if...

# Fix auto-fulfillment of product with default values for a store view, if value was actually not specified.
parent 2ee4994e
...@@ -120,7 +120,9 @@ abstract class EcomDev_PHPUnit_Model_Mysql4_Fixture_Eav_Catalog_Abstract extends ...@@ -120,7 +120,9 @@ abstract class EcomDev_PHPUnit_Model_Mysql4_Fixture_Eav_Catalog_Abstract extends
*/ */
protected function _getGwsValue($row, $attribute, $scopeCode, $scopeType = self::SCOPE_TYPE_STORE) protected function _getGwsValue($row, $attribute, $scopeCode, $scopeType = self::SCOPE_TYPE_STORE)
{ {
if (!isset($row['/' . $scopeType][$scopeCode]) || !is_array($row['/' . $scopeType][$scopeCode])) { if (!isset($row['/' . $scopeType][$scopeCode])
|| !is_array($row['/' . $scopeType][$scopeCode])
|| !isset($row['/' . $scopeType][$scopeCode][$attribute->getAttributeCode()])) {
return null; return null;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment