From b1ca8ff625115a68ebe410012a00bf4fa92ab91b Mon Sep 17 00:00:00 2001 From: Alex Popa Date: Tue, 31 Dec 2024 00:36:02 +0200 Subject: [PATCH] reset effective uat when change legal county --- app/Forms/Components/Location.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Forms/Components/Location.php b/app/Forms/Components/Location.php index ddf205ba..fad5177f 100644 --- a/app/Forms/Components/Location.php +++ b/app/Forms/Components/Location.php @@ -244,6 +244,7 @@ public function getChildComponents(): array $set($this->getCityField(), null); if ($this->getCopyPath()) { $set(\sprintf('../%s.county_id', $this->getCopyPath()), $state); + $set(\sprintf('../%s.city_id', $this->getCopyPath()), null); } }) ->when(! $this->hasCity(), fn (Select $component) => $component->columnSpanFull()),