Skip to content

Commit 00b1a9c

Browse files
committed
Revert "UI\PresenterComponent: removed references created by loadState() for persistent parameters. [Closes nette/nette#703]"
This reverts commit cda17f4. See https://forum.nette.org/cs/35528-stejne-pojmenovany-parametr-akce-presenteru-a-persistentni-odlisne-chovani-v-nette-2-0-oproti-aktualnimu#p221742
1 parent 83212fd commit 00b1a9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Application/UI/Component.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ public function loadState(array $params): void
173173
));
174174
}
175175

176-
$this->$name = $params[$name];
176+
$this->$name = &$params[$name];
177177
} else {
178-
$params[$name] = $this->$name ?? null;
178+
$params[$name] = &$this->$name;
179179
}
180180
}
181181

0 commit comments

Comments
 (0)