fixed limitation of group_concat

This commit is contained in:
alejandro.campos@artica.es 2022-09-21 13:32:36 +02:00
parent 3524cdac6c
commit debf2e7a40
1 changed files with 2 additions and 1 deletions

View File

@ -1467,7 +1467,6 @@ function events_get_all(
// Secondary groups.
$event_lj = '';
if (!$user_is_admin || ($user_is_admin && isset($groups) === true && $groups > 0)) {
db_process_sql('SET group_concat_max_len = 9999999');
if ((bool) $filter['search_secondary_groups'] === true) {
$event_lj = events_get_secondary_groups_left_join($table);
}
@ -1481,6 +1480,8 @@ function events_get_all(
unset($fields[$idx]);
}
db_process_sql('SET group_concat_max_len = 9999999');
$group_selects = sprintf(
',COUNT(id_evento) AS event_rep,
%s