From 76d0495fbc75506a19843c3b725dca7b92e40c5d Mon Sep 17 00:00:00 2001 From: merdan Date: Wed, 4 May 2022 15:15:43 +0500 Subject: [PATCH] sarga filters --- packages/Sarga/API/Http/Resources/Catalog/Attribute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Sarga/API/Http/Resources/Catalog/Attribute.php b/packages/Sarga/API/Http/Resources/Catalog/Attribute.php index d5992430c..83ec310f2 100644 --- a/packages/Sarga/API/Http/Resources/Catalog/Attribute.php +++ b/packages/Sarga/API/Http/Resources/Catalog/Attribute.php @@ -18,7 +18,7 @@ class Attribute extends JsonResource 'id' => $this->id, 'code' => $this->code, 'name' => $this->name ?? $this->admin_name, - 'options' => AttributeOption::collection($this->options()->take(20)->get()), + 'options' => AttributeOption::collection($this->options), ]; }