icingadb-web/library/Icingadb/Data
Sukhwinder Dhillon 15cb8d97f8 Fix leading comma in JSON export (#1349)
When exporting JSON with a limit and a page > 1 set, a leading comma is added
before the first item because `$offset !== 0` evaluates to true, resulting in
invalid JSON.

Replace the offset‑based condition with a `$first` flag to track whether any
item has been written yet.

(cherry picked from commit b60448bc77)
2026-04-01 10:40:26 +02:00
..
CsvResultSet.php Use separate result sets when exporting hosts/services 2024-03-22 15:05:25 +01:00
CsvResultSetUtils.php Only include requested columns in CSV/JSON exports when using ?columns=… (#1301) 2025-11-19 11:40:44 +01:00
DependencyNodes.php Add MultiSelectQuickActions support 2024-11-19 17:44:53 +01:00
JsonResultSet.php Use separate result sets when exporting hosts/services 2024-03-22 15:05:25 +01:00
JsonResultSetUtils.php Fix leading comma in JSON export (#1349) 2026-04-01 10:40:26 +02:00
PivotTable.php Add variable type hint to Icinga::app()'s returned object 2023-09-05 14:26:43 +02:00
VolatileCsvResults.php Use separate result sets when exporting hosts/services 2024-03-22 15:05:25 +01:00
VolatileJsonResults.php Use separate result sets when exporting hosts/services 2024-03-22 15:05:25 +01:00