From 1935be167d4b4ffceb3d4406b8b7cd30fcb1e283 Mon Sep 17 00:00:00 2001 From: merdan Date: Fri, 1 Apr 2022 15:56:02 +0500 Subject: [PATCH] groupby color --- packages/Sarga/API/Http/Resources/Catalog/SuperAttribute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Sarga/API/Http/Resources/Catalog/SuperAttribute.php b/packages/Sarga/API/Http/Resources/Catalog/SuperAttribute.php index c70ec572d..10863277b 100644 --- a/packages/Sarga/API/Http/Resources/Catalog/SuperAttribute.php +++ b/packages/Sarga/API/Http/Resources/Catalog/SuperAttribute.php @@ -17,7 +17,7 @@ class SuperAttribute extends JsonResource return [ 'id' => $this->id, 'code' => $this->code, - 'name' => $this->name, + 'name' => $this->name ?? $this->admin_name, ]; } } \ No newline at end of file