From 5772eca363fc49d624d6a51b1ae79d76e556fc69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= Date: Sat, 14 Mar 2026 00:50:44 +0300 Subject: [PATCH] wip --- app/Models/Setting/Category.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Models/Setting/Category.php b/app/Models/Setting/Category.php index 2f68a75ee..82988c60d 100644 --- a/app/Models/Setting/Category.php +++ b/app/Models/Setting/Category.php @@ -292,10 +292,9 @@ class Category extends Model */ public function getDisplayNameAttribute(): string { - $typeConfig = config('type.category.' . $this->type, []); - $hideCode = isset($typeConfig['hide']) && in_array('code', $typeConfig['hide']); - + $hideCode = $this->hideCodeCategoryType($this->type); $typeNames = $this->getCategoryTypes(); + $typeName = $typeNames[$this->type] ?? ucfirst($this->type); $prefix = (!$hideCode && $this->code) ? $this->code . ' - ' : '';