diff --git a/src/Domains/Inventory/Products/Models/Products.php b/src/Domains/Inventory/Products/Models/Products.php index e86d0128e..db031e4dd 100644 --- a/src/Domains/Inventory/Products/Models/Products.php +++ b/src/Domains/Inventory/Products/Models/Products.php @@ -272,7 +272,7 @@ public function addAttributes(UserInterface $user, array $attributes): void $attributeModel = Attributes::getById((int) $attribute['id'], $this->app); } else { $attributesDto = AttributesDto::from([ - 'app' => app(Apps::class), + 'app' =>$this->app, 'user' => $user, 'company' => $this->product->company, 'name' => $attribute['name'],