From c8f5ad487c88025457076242264f9bf9ad579116 Mon Sep 17 00:00:00 2001 From: merdan Date: Tue, 28 Jun 2022 14:39:02 +0500 Subject: [PATCH] order to manat --- packages/Webkul/Product/src/Models/ProductFlat.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/Webkul/Product/src/Models/ProductFlat.php b/packages/Webkul/Product/src/Models/ProductFlat.php index 70b993a20..fadd879cd 100644 --- a/packages/Webkul/Product/src/Models/ProductFlat.php +++ b/packages/Webkul/Product/src/Models/ProductFlat.php @@ -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); } }