order to manat

This commit is contained in:
merdan 2022-06-28 14:39:02 +05:00
parent 9c1640cdf9
commit c8f5ad487c
1 changed files with 4 additions and 2 deletions

View File

@ -87,8 +87,10 @@ class ProductFlat extends Model implements ProductFlatContract
if ($attribute && ($attribute->value_per_channel || $attribute->value_per_locale)) {
$defaultProduct = $this->getDefaultProduct();
$this->attributes[$key] = $defaultProduct->attributes[$key];
try {
$this->attributes[$key] = $defaultProduct->attributes[$key];
}
catch(Exception $ex){}
return $this->getAttributeValue($key);
}
}