From f7996c402f588aaec183cc27d21be45ebfd3513b Mon Sep 17 00:00:00 2001 From: Marc Jauvin Date: Tue, 2 Apr 2024 09:08:11 -0400 Subject: [PATCH] build config for all cases --- formwidgets/MLNestedForm.php | 3 ++- formwidgets/MLRepeater.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/formwidgets/MLNestedForm.php b/formwidgets/MLNestedForm.php index d0e02d6..23667ba 100644 --- a/formwidgets/MLNestedForm.php +++ b/formwidgets/MLNestedForm.php @@ -35,7 +35,8 @@ public function init() // make the translationMode available to the nestedform formwidgets if (isset($this->config->form)) { - $this->config->form['translationMode'] = $this->translationMode; + $this->config->form = $this->makeConfig($this->config->form); + $this->config->form->translationMode = $this->translationMode; } parent::init(); diff --git a/formwidgets/MLRepeater.php b/formwidgets/MLRepeater.php index 5bc3cfa..88105c9 100644 --- a/formwidgets/MLRepeater.php +++ b/formwidgets/MLRepeater.php @@ -37,7 +37,8 @@ public function init() $this->fillFromConfig(['translationMode']); // make the translationMode available to the repeater items formwidgets if (isset($this->config->form)) { - $this->config->form['translationMode'] = $this->translationMode; + $this->config->form = $this->makeConfig($this->config->form); + $this->config->form->translationMode = $this->translationMode; } parent::init();