This commit is contained in:
cgfhtw
2024-10-31 14:22:31 +01:00
parent 963391ec99
commit 8d00a9b4c9
2 changed files with 7 additions and 2 deletions
+5 -1
View File
@@ -400,7 +400,11 @@ $config['employee'] = [
'pid' => [ 'pid' => [
'alias' => ['person_id'], 'alias' => ['person_id'],
'comparison' => 'equal-int', 'comparison' => 'equal-int',
'field' => "person_id" 'field' => "person_id",
'join' => [
'table' => "public.tbl_benutzer",
'on' => "uid = mitarbeiter_uid"
]
], ],
'oe' => [ 'oe' => [
'alias' => ['ou', 'organisationseinheit', 'organisationunit'], 'alias' => ['ou', 'organisationseinheit', 'organisationunit'],
+2 -1
View File
@@ -242,7 +242,8 @@ class SearchBarLib
" . $this->_ci->db->escape($type) . " AS type, " . $this->_ci->db->escape($type) . " AS type,
rank, rank,
TO_JSONB((SELECT x FROM (SELECT " . implode(", ", $table_config['resultfields'] ?? ['*']) . ") x)) AS data TO_JSONB((SELECT x FROM (SELECT " . implode(", ", $table_config['resultfields'] ?? ['*']) . ") x)) AS data
FROM final_" . $type . ($table_config['resultjoin'] ?? ""); FROM final_" . $type . "
" . ($table_config['resultjoin'] ?? "");
} }
if (!$selects) if (!$selects)