From 2bba637518f5b9c41f191213f64a2c0d3ce43afe Mon Sep 17 00:00:00 2001 From: Devansh Date: Thu, 16 Dec 2021 10:12:00 +0530 Subject: [PATCH] Null Issue Fixed --- packages/Webkul/Product/src/Models/ProductFlat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Webkul/Product/src/Models/ProductFlat.php b/packages/Webkul/Product/src/Models/ProductFlat.php index cda302a4a..cd75bb135 100644 --- a/packages/Webkul/Product/src/Models/ProductFlat.php +++ b/packages/Webkul/Product/src/Models/ProductFlat.php @@ -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); }