mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
fixed limitation of group_concat
This commit is contained in:
parent
3524cdac6c
commit
debf2e7a40
@ -1467,7 +1467,6 @@ function events_get_all(
|
|||||||
// Secondary groups.
|
// Secondary groups.
|
||||||
$event_lj = '';
|
$event_lj = '';
|
||||||
if (!$user_is_admin || ($user_is_admin && isset($groups) === true && $groups > 0)) {
|
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) {
|
if ((bool) $filter['search_secondary_groups'] === true) {
|
||||||
$event_lj = events_get_secondary_groups_left_join($table);
|
$event_lj = events_get_secondary_groups_left_join($table);
|
||||||
}
|
}
|
||||||
@ -1481,6 +1480,8 @@ function events_get_all(
|
|||||||
unset($fields[$idx]);
|
unset($fields[$idx]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
db_process_sql('SET group_concat_max_len = 9999999');
|
||||||
|
|
||||||
$group_selects = sprintf(
|
$group_selects = sprintf(
|
||||||
',COUNT(id_evento) AS event_rep,
|
',COUNT(id_evento) AS event_rep,
|
||||||
%s
|
%s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user