Merge branch 'ent-8940-13558-bug-eventos-con-user-no-admin' into 'develop'

8940 fix events view

See merge request artica/pandorafms!4862
This commit is contained in:
Daniel Rodriguez 2022-05-05 12:19:43 +00:00
commit c7b94c8538
1 changed files with 1 additions and 1 deletions

View File

@ -757,7 +757,7 @@ function events_get_all(
if (is_array($fields) === false && $fields === 'count'
|| (is_array($fields) === true && $fields[0] === 'count')
) {
$fields = ['te.id_evento'];
$fields = ['te.*'];
$count = true;
} else if (!is_array($fields)) {
error_log('[events_get_all] Fields must be an array or "count".');