Skip to content

Commit 0837e26

Browse files
authored
use specific language_name in a ChildForm Collection #728 #729
1 parent ee4f8f1 commit 0837e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Kris/LaravelFormBuilder/Fields/ChildFormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected function getClassFromOptions()
116116
$options = [
117117
'model' => $this->getOption($this->valueProperty) ?: $this->parent->getModel(),
118118
'name' => $this->name,
119-
'language_name' => $this->parent->getLanguageName(),
119+
'language_name' => $this->getOption('language_name') ?: $this->parent->getLanguageName(),
120120
'translation_template' => $this->parent->getTranslationTemplate(),
121121
];
122122

0 commit comments

Comments
 (0)