From af5d18bac17d8fef03fe37f46089841f9561502b Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Tue, 11 Oct 2022 15:31:55 +0200 Subject: [PATCH] FormUid: Add `ignore` attr to the hidden element --- src/Common/FormUid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/FormUid.php b/src/Common/FormUid.php index 8453dd27..05aac7b5 100644 --- a/src/Common/FormUid.php +++ b/src/Common/FormUid.php @@ -20,7 +20,7 @@ trait FormUid protected function createUidElement() { /** @var Form $this */ - $element = $this->createElement('hidden', $this->uidElementName); + $element = $this->createElement('hidden', $this->uidElementName, ['ignore' => true]); $element->getAttributes()->registerAttributeCallback('value', function () { /** @var Form $this */ return $this->getAttributes()->get('name')->getValue();