Null Issue Fixed

This commit is contained in:
Devansh 2021-12-16 10:12:00 +05:30
parent 139eebc135
commit 2bba637518
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class ProductFlat extends Model implements ProductFlatContract
if ($attribute && ($attribute->value_per_channel || $attribute->value_per_locale)) {
$defaultProduct = $this->getDefaultProduct();
$this->attributes[$key] = $defaultProduct->$key;
$this->attributes[$key] = $defaultProduct->attributes[$key];
return $this->getAttributeValue($key);
}