Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

fix: fix count by null in TransferVehicleController #159

Merged
merged 1 commit into from
May 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ public function postAction()
$validationErrors = [];
if (empty($selectedVehicles)) {
$validationErrors[] = 'licence.vehicle.transfer.error.no-vehicle-selected';
}
if (count($selectedVehicles) > static::VEHICLE_TRANSFER_LIMIT) {
} elseif (count($selectedVehicles) > static::VEHICLE_TRANSFER_LIMIT) {
$validationErrors[] = 'licence.vehicle.transfer.error.too-many-vehicles-selected';
}

Expand Down
Loading