Skip to content

Commit

Permalink
use specific language_name in a ChildForm Collection #728 #729
Browse files Browse the repository at this point in the history
  • Loading branch information
ELtd authored Oct 24, 2024
1 parent ee4f8f1 commit 0837e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kris/LaravelFormBuilder/Fields/ChildFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
];

Expand Down

0 comments on commit 0837e26

Please sign in to comment.