Skip to content

Commit d37c1b8

Browse files
committed
refactor: miglioria gestione traduzioni
1 parent 8ce9926 commit d37c1b8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Traits/RecordTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ public function save(array $options = [])
8282

8383
// Popolo inizialmente i campi traducibili o allineo quelli uguali
8484
foreach ($this->getTranslatedFields() as $field) {
85-
$value = $this->getTranslation($field);
86-
87-
foreach ($other_langs as $id_lang) {
85+
$value = $this->name;
86+
87+
foreach ($langs as $id_lang) {
8888
$translation = database()->table($this->table.'_lang')
8989
->select($field)
9090
->where('id_record', '=', $this->id)

0 commit comments

Comments
 (0)