From 45372829d67faa7bea215f108e36c61627e5d8ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Thu, 9 Mar 2023 17:42:46 +0300 Subject: [PATCH] fix search string value issue --- app/View/Components/SearchString.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/View/Components/SearchString.php b/app/View/Components/SearchString.php index 394bf023e..c35ebe15f 100644 --- a/app/View/Components/SearchString.php +++ b/app/View/Components/SearchString.php @@ -113,6 +113,8 @@ 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) {