diff --git a/classes/TranslatableBehavior.php b/classes/TranslatableBehavior.php index 1c31252..2e37082 100644 --- a/classes/TranslatableBehavior.php +++ b/classes/TranslatableBehavior.php @@ -355,7 +355,7 @@ public function translateContext($context = null): string * @param string|null $context * @return self */ - public function lang($context = null): self + public function lang($context = null) { $this->translateContext($context); diff --git a/formwidgets/MLRepeater.php b/formwidgets/MLRepeater.php index b41e12c..5bc3cfa 100644 --- a/formwidgets/MLRepeater.php +++ b/formwidgets/MLRepeater.php @@ -127,7 +127,7 @@ public function getLocaleSaveData() return $values; } - $fieldName = $this->getFieldName(); + $fieldName = $this->getLongFieldName(); $isJson = $this->isLocaleFieldJsonable(); foreach ($data as $locale => $_data) { diff --git a/traits/MLControl.php b/traits/MLControl.php index fc14a86..ba3087f 100644 --- a/traits/MLControl.php +++ b/traits/MLControl.php @@ -239,7 +239,7 @@ public function getLocaleSaveData() return $values; } - $fieldName = $this->getFieldName(); + $fieldName = $this->getLongFieldName(); $isJson = $this->isLocaleFieldJsonable(); foreach ($data as $locale => $_data) { @@ -334,7 +334,7 @@ public function isLongFormNeeded() * * @return string */ - public function getFieldName() + public function getLongFieldName() { if ($this->isLongFormNeeded()) { $fieldName = implode('.', HtmlHelper::nameToArray($this->formField->getName()));