We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ce9926 commit d37c1b8Copy full SHA for d37c1b8
1 file changed
src/Traits/RecordTrait.php
@@ -82,9 +82,9 @@ public function save(array $options = [])
82
83
// Popolo inizialmente i campi traducibili o allineo quelli uguali
84
foreach ($this->getTranslatedFields() as $field) {
85
- $value = $this->getTranslation($field);
86
-
87
- foreach ($other_langs as $id_lang) {
+ $value = $this->name;
+
+ foreach ($langs as $id_lang) {
88
$translation = database()->table($this->table.'_lang')
89
->select($field)
90
->where('id_record', '=', $this->id)
0 commit comments