added early return for searchable name in getSearchStringValue method
This commit is contained in:
parent
3c033af0d6
commit
f9c57bd402
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue