Skip to content
Snippets Groups Projects
Commit 18b851ba authored by enured's avatar enured
Browse files

B16616: Changed check method 2. refs#16616

parent 3dc6fd77
No related branches found
No related tags found
2 merge requests!614New version v23.10.0,!608B16616: Fixed typeahead api query response problem if typeahead sql is not used. refs#16616
Pipeline #9897 passed
...@@ -71,7 +71,7 @@ class TypeAhead { ...@@ -71,7 +71,7 @@ class TypeAhead {
// Check for an optional given dbIndex: '[<int>]SELECT ...' // Check for an optional given dbIndex: '[<int>]SELECT ...'
$sql = $sipVars[FE_TYPEAHEAD_SQL] ?? ''; $sql = $sipVars[FE_TYPEAHEAD_SQL] ?? '';
if ($sql[0] ?? '' === '[') { if (($sql[0] ?? '') === '[') {
$pos = strpos($sql, ']'); $pos = strpos($sql, ']');
$dbIndex = substr($sql, 1, $pos - 1); $dbIndex = substr($sql, 1, $pos - 1);
$sipVars[FE_TYPEAHEAD_SQL] = substr($sql, $pos + 1); $sipVars[FE_TYPEAHEAD_SQL] = substr($sql, $pos + 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment