Update getUserByCustomerNumber references to getCustomerByIdOrCustomerNumber and enhance null-checking in requireSelected.

This commit is contained in:
Jeppe Bundgaard
2026-01-06 15:40:05 +01:00
parent 19c13977ca
commit 49589de98e
6 changed files with 37 additions and 16 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ class vehiclesRoute
} else {
// Set the customer_id to the one from the request
$target_user = (new users_o());
$target_user->getUserByCustomerNumber((int)self::getParameter('customer_id'));
$target_user->getCustomerByIdOrCustomerNumber((int)self::getParameter('customer_id'));
}
}
}