From e86d3fedcfa969244b640d475ed5189872b2391f Mon Sep 17 00:00:00 2001 From: Thijmen Wijers <106662400+wthijmen@users.noreply.github.com> Date: Fri, 1 Dec 2023 17:05:26 +0100 Subject: [PATCH] fix: only set country if currentCountry has value (#794) --- Model/Sales/Package.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Model/Sales/Package.php b/Model/Sales/Package.php index f7badd3f..8e4e22a3 100755 --- a/Model/Sales/Package.php +++ b/Model/Sales/Package.php @@ -245,6 +245,10 @@ public function getCurrentCountry(): string */ public function setCurrentCountry(?string $currentCountry): void { + if ($currentCountry === null) { + return; + } + $this->currentCountry = $currentCountry; } }