From 7e2d4c7dc2a778bb590104fa21a40dfcac76f230 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Fri, 16 Jan 2026 16:21:50 -0500 Subject: [PATCH] - Added formContextValuesRoot to form context --- src/Method/FormContext.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Method/FormContext.php b/src/Method/FormContext.php index f5bc8be..a7cfa00 100644 --- a/src/Method/FormContext.php +++ b/src/Method/FormContext.php @@ -15,6 +15,8 @@ class FormContext implements FormContextInterface public mixed $formExecutionStatus = null; + protected string $formContextValuesRoot; + public array $formContextValues = []; public array $formContextFiles = []; @@ -43,6 +45,10 @@ class FormContext implements FormContextInterface } } + if ($this->formContextValuesRoot ?? false) { + $this->formContextValues = $this->formContextValues[$this->formContextValuesRoot] ?? []; + } + $this->fillValues(); $this->formContextFiles = $formContextRequest->getUploadedFiles() ?: [];