From 612d41cc5ec9ead3b2e158ff19b376fb8120bd4a Mon Sep 17 00:00:00 2001 From: David Grudl Date: Mon, 24 Oct 2022 19:12:55 +0200 Subject: [PATCH] Revert "UI\PresenterComponent: removed references created by loadState() for persistent parameters. [Closes nette/nette#703]" This reverts commit cda17f460d020b0f042364d4e140742022a7e94d. See https://forum.nette.org/cs/35528-stejne-pojmenovany-parametr-akce-presenteru-a-persistentni-odlisne-chovani-v-nette-2-0-oproti-aktualnimu#p221742 --- src/Application/UI/Component.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Application/UI/Component.php b/src/Application/UI/Component.php index 2023296e9..a8cddcd61 100644 --- a/src/Application/UI/Component.php +++ b/src/Application/UI/Component.php @@ -173,9 +173,9 @@ public function loadState(array $params): void )); } - $this->$name = $params[$name]; + $this->$name = &$params[$name]; } else { - $params[$name] = $this->$name ?? null; + $params[$name] = &$this->$name; } }