From cbf2cd0ee8fce866a72d4e65bc67d3ac26381269 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Thu, 21 Aug 2025 15:15:45 +1000 Subject: [PATCH] FE --- front/devices.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/front/devices.php b/front/devices.php index c4a03263..d9b5b0b5 100755 --- a/front/devices.php +++ b/front/devices.php @@ -683,7 +683,9 @@ function initializeDatatable (status) { return JSON.stringify(query); // Send the JSON request }, - "dataSrc": function (json) { + "dataSrc": function (res) { + + json = res["data"]; // Set the total number of records for pagination json.recordsTotal = json.devices.count || 0; json.recordsFiltered = json.devices.count || 0;