Skip to content

Commit

Permalink
fix method name clash
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed Mar 27, 2024
1 parent cc3aeef commit 0720e1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion classes/TranslatableBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion formwidgets/MLRepeater.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function getLocaleSaveData()
return $values;
}

$fieldName = $this->getFieldName();
$fieldName = $this->getLongFieldName();
$isJson = $this->isLocaleFieldJsonable();

foreach ($data as $locale => $_data) {
Expand Down
4 changes: 2 additions & 2 deletions traits/MLControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function getLocaleSaveData()
return $values;
}

$fieldName = $this->getFieldName();
$fieldName = $this->getLongFieldName();
$isJson = $this->isLocaleFieldJsonable();

foreach ($data as $locale => $_data) {
Expand Down Expand Up @@ -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()));
Expand Down

0 comments on commit 0720e1d

Please sign in to comment.