use renderers in search config

This commit is contained in:
chfhtw
2025-07-29 16:07:15 +02:00
parent 7726850193
commit 30b895ad04
5 changed files with 42 additions and 31 deletions
+2
View File
@@ -231,8 +231,10 @@ class SearchLib
GROUP BY " . $this->_formatPrimarykeys($table_config['primarykey']) . "
)";
$renderer = $table_config['renderer'] ?? $type;
$selects[] = "
SELECT
" . $this->_ci->db->escape($renderer) . " AS renderer,
" . $this->_ci->db->escape($type) . " AS type,
rank,
TO_JSONB((SELECT x FROM (SELECT " . implode(", ", $table_config['resultfields'] ?? ['*']) . ") x)) AS data