From e383bdcb12fce3bcbbef3e4d4a562fa44c4c9e96 Mon Sep 17 00:00:00 2001 From: Eric Letard Date: Thu, 24 Oct 2024 07:47:20 +0200 Subject: [PATCH] use specific language_name in a ChildForm Collection #728 --- src/Kris/LaravelFormBuilder/Fields/ChildFormType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kris/LaravelFormBuilder/Fields/ChildFormType.php b/src/Kris/LaravelFormBuilder/Fields/ChildFormType.php index 49513c9d..5c35689a 100644 --- a/src/Kris/LaravelFormBuilder/Fields/ChildFormType.php +++ b/src/Kris/LaravelFormBuilder/Fields/ChildFormType.php @@ -116,7 +116,7 @@ protected function getClassFromOptions() $options = [ 'model' => $this->getOption($this->valueProperty) ?: $this->parent->getModel(), 'name' => $this->name, - 'language_name' => $this->parent->getLanguageName(), + 'language_name' => $this->getOption('language_name') ?: $this->parent->getLanguageName(), 'translation_template' => $this->parent->getTranslationTemplate(), ];