From e6a29cb0511fcd121aea6b9b75d7a07a7025cf77 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 8 Jul 2022 09:26:57 -0400 Subject: [PATCH] Fix issue in WireInput where setUrlSegments() didn't reset all segments when given array of segments smaller than what was previously set. --- wire/core/WireInput.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wire/core/WireInput.php b/wire/core/WireInput.php index e047df04..3b5c11a3 100644 --- a/wire/core/WireInput.php +++ b/wire/core/WireInput.php @@ -713,6 +713,7 @@ class WireInput extends Wire { * */ public function setUrlSegments(array $urlSegments) { + $this->urlSegments = array(); $n = 1; foreach($urlSegments as $urlSegment) { $this->setUrlSegment($n, $urlSegment);