mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
fix SearchLib bug, add searchtypes config studentcis and active_organisationunit, use new searchtype in cis4 searchoptions and searchbar result rendering
This commit is contained in:
@@ -668,8 +668,9 @@ class SearchLib
|
||||
SELECT " . $this->_formatPrimarykeys($table_config['primarykey']) . ", rank / " . $count . " AS rank FROM " . $current_select;
|
||||
}
|
||||
|
||||
if ($or_with[0] === "RECURSIVE") {
|
||||
if ($sqlWith[0] !== "RECURSIVE")
|
||||
if ($or_with[0] === "RECURSIVE")
|
||||
{
|
||||
if (empty($sqlWith) || $sqlWith[0] !== "RECURSIVE")
|
||||
array_unshift($sqlWith, "RECURSIVE");
|
||||
array_shift($or_with);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user