1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 16:54:44 +02:00

Fix issue in WireInput where setUrlSegments() didn't reset all segments when given array of segments smaller than what was previously set.

This commit is contained in:
Ryan Cramer
2022-07-08 09:26:57 -04:00
parent af950078ed
commit e6a29cb051

View File

@@ -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);