fix: eliminate report PDO parameter failures

This commit is contained in:
Marco0300
2026-09-01 22:47:06 +02:00
parent 42b223e89d
commit 2997caacc1
2 changed files with 16 additions and 9 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ $checks++;
// The technician report route must sum only the logged-in technician's entries,
// even when an assigned jobcard contains entries recorded by other technicians.
security_regression_assert(
str_contains($frontController, "\$hoursCondition = \$user['role_name'] === 'Technician'") && str_contains($frontController, 'te.technician_id = :user'),
str_contains($frontController, 'array_unshift($hoursPredicates') && str_contains($frontController, 'te.technician_id = ?'),
'Technician report SQL must isolate hours to the authenticated technician.'
);
$activity = (new TechnicianActivityReport())->build([