Skip to content

Commit

Permalink
fix: PrestaShop#37151 - [carrier-ranges] fix exception displayed when…
Browse files Browse the repository at this point in the history
… deleting a range for a specific zone
  • Loading branch information
mattgoud committed Oct 30, 2024
1 parent 327e0af commit 0d5b56b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 0d5b56b

Please sign in to comment.