From 6f7d2c32533dc06062a9e140921a7ce1f593e951 Mon Sep 17 00:00:00 2001 From: "Jokob @NetAlertX" <96159884+jokob-sk@users.noreply.github.com> Date: Fri, 13 Mar 2026 13:17:30 +0000 Subject: [PATCH] Rename db_count to dbCount in GraphQL response handling for consistency --- front/devices.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/devices.php b/front/devices.php index a3345f74..19095e52 100755 --- a/front/devices.php +++ b/front/devices.php @@ -767,7 +767,7 @@ function initializeDatatable (status) { ${_gqlFields} } count - db_count + dbCount } } `; @@ -810,7 +810,7 @@ function initializeDatatable (status) { // recordsTotal = raw DB count (before filters/search) so DataTables uses emptyTable // only when the DB is genuinely empty, and zeroRecords when a filter returns nothing. - res.recordsTotal = json.devices.db_count || 0; + res.recordsTotal = json.devices.dbCount || 0; res.recordsFiltered = json.devices.count || 0; // console.log("recordsTotal:", res.recordsTotal, "recordsFiltered:", res.recordsFiltered);