diff --git a/src/Core/Form/IdentifiableObject/DataHandler/CarrierFormDataHandler.php b/src/Core/Form/IdentifiableObject/DataHandler/CarrierFormDataHandler.php index 76119f922e9bd..7964f46a5801f 100644 --- a/src/Core/Form/IdentifiableObject/DataHandler/CarrierFormDataHandler.php +++ b/src/Core/Form/IdentifiableObject/DataHandler/CarrierFormDataHandler.php @@ -126,6 +126,9 @@ private function formatFormRangesData(array $data): array foreach ($data as $zone) { foreach ($zone['ranges'] as $range) { + if ($range['from'] === null || $range['to'] === null) { + continue; + } $ranges[] = [ 'id_zone' => $zone['zoneId'], 'range_from' => $range['from'],