[FIX] ServicesController: query assessment_responses reale + NonConformityController: getPagination named keys

This commit is contained in:
DevEnv nis2-agile
2026-03-09 10:22:40 +01:00
parent 159d783ed7
commit 8578cb5c31
2 changed files with 19 additions and 21 deletions
@@ -60,8 +60,10 @@ class NonConformityController extends BaseController
$this->requireOrgAccess();
$orgId = $this->getCurrentOrgId();
[$page, $perPage] = $this->getPagination();
$offset = ($page - 1) * $perPage;
$pagination = $this->getPagination();
$page = $pagination['page'];
$perPage = $pagination['per_page'];
$offset = $pagination['offset'];
// Filters
$where = 'n.organization_id = ?';