added early return for searchable name in getSearchStringValue method

This commit is contained in:
Cihan Şentürk 2026-03-09 22:46:17 +03:00
parent 3c033af0d6
commit f9c57bd402
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,10 @@ trait SearchString
foreach ($columns as $column) { foreach ($columns as $column) {
$variable = preg_split('/:|>?<?=/', $column); $variable = preg_split('/:|>?<?=/', $column);
if ($name == 'searchable' && count($variable) == 1 && preg_match('/^".*"$/', $variable[0])) {
return trim($variable[0], '"');
}
if (empty($variable[0]) || ($variable[0] != $name) || empty($variable[1])) { if (empty($variable[0]) || ($variable[0] != $name) || empty($variable[1])) {
continue; continue;
} }