From 44b1662f512859c7872bc3f29f5fef42f349124e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 31 Oct 2024 11:09:59 +0100 Subject: [PATCH] Added comment about the fix --- .../IdentifiableObject/DataHandler/CarrierFormDataHandler.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Core/Form/IdentifiableObject/DataHandler/CarrierFormDataHandler.php b/src/Core/Form/IdentifiableObject/DataHandler/CarrierFormDataHandler.php index 7964f46a5801f..dae68ab235473 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) { + // Due to this bug https://github.com/PrestaShop/PrestaShop/issues/37151, + // We have to do this quick and dirty fix. + // This bug is due to symfony request handle. if ($range['from'] === null || $range['to'] === null) { continue; }