Merge branch 'ent-10591-vista-auditoria-gif-cargando-infinito' into 'develop'

Ent 10591 vista auditoria gif cargando infinito

See merge request artica/pandorafms!5757
This commit is contained in:
Matias Didier 2023-05-11 11:52:53 +00:00
commit 62b4ffb30b
1 changed files with 23 additions and 11 deletions

View File

@ -318,17 +318,29 @@ class AuditLog extends HTML
$count = (int) db_get_value_sql(sprintf('SELECT COUNT(*) as "total" FROM tsesion WHERE %s', $filter));
$sql = sprintf(
'SELECT *
FROM tsesion
WHERE %s
ORDER BY %s
LIMIT %d, %d',
$filter,
$order,
$start,
$length
);
if ($length !== '-1') {
$sql = sprintf(
'SELECT *
FROM tsesion
WHERE %s
ORDER BY %s
LIMIT %d, %d',
$filter,
$order,
$start,
$length
);
} else {
$sql = sprintf(
'SELECT *
FROM tsesion
WHERE %s
ORDER BY %s',
$filter,
$order
);
}
$data = db_get_all_rows_sql($sql);
if (empty($data) === false) {