From 9adc3265096b465f7ce6110744b4d07e09914713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enes=20Sacid=20B=C3=BCker?= <73346401+EnesSacid-Buker@users.noreply.github.com> Date: Wed, 22 Mar 2023 10:55:41 +0300 Subject: [PATCH] Search string translate filter name --- app/View/Components/SearchString.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/View/Components/SearchString.php b/app/View/Components/SearchString.php index c35ebe15f..667ff782d 100644 --- a/app/View/Components/SearchString.php +++ b/app/View/Components/SearchString.php @@ -114,7 +114,7 @@ class SearchString extends Component protected function getFilterName($column, $options) { $column = last(explode('.', $column)); - + if (strpos($column, '_id') !== false) { $column = str_replace('_id', '', $column); } else if (strpos($column, '_code') !== false) { @@ -122,7 +122,7 @@ class SearchString extends Component } if (! empty($options['translation']) && ! isset($options['boolean'])) { - return $options['translation']; + return $this->findTranslation($options['translation']); } if (!empty($options['key'])) {