mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-28 03:44:19 +08:00
Revert "Merge pull request #12372 from dmitry-udod/3.x"
This reverts commit84e07b3e39, reversing changes made to46ce51ab45.
This commit is contained in:
+2
-2
@@ -91,10 +91,10 @@ trait Translatable
|
||||
|
||||
$this->otherLocaleData[$this->oldActiveLocale] = Arr::only($this->data, $translatableAttributes);
|
||||
|
||||
$this->form->fill([
|
||||
$this->data = [
|
||||
...Arr::except($this->data, $translatableAttributes),
|
||||
...$this->otherLocaleData[$this->activeLocale] ?? [],
|
||||
]);
|
||||
];
|
||||
|
||||
unset($this->otherLocaleData[$this->activeLocale]);
|
||||
}
|
||||
|
||||
+2
-3
@@ -29,11 +29,10 @@ trait Translatable
|
||||
$translatableAttributes = static::getResource()::getTranslatableAttributes();
|
||||
|
||||
$this->otherLocaleData[$this->oldActiveLocale] = Arr::only($this->data, $translatableAttributes);
|
||||
|
||||
$this->form->fill([
|
||||
$this->data = [
|
||||
...$this->data,
|
||||
...$this->otherLocaleData[$this->activeLocale] ?? [],
|
||||
]);
|
||||
];
|
||||
}
|
||||
|
||||
public function getTranslatableLocales(): array
|
||||
|
||||
Reference in New Issue
Block a user