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 f5c1f63 commit e85c2a9Copy full SHA for e85c2a9
Eloquent/Traits/Translatable.php
@@ -69,7 +69,8 @@ protected static function bootTranslatable()
69
if (is_array($original_locales)) {
70
//Find and change only updated locales
71
foreach ($updated_locales as $locale => $value) {
72
- $original_locales[$locale] = $value;
+ if (strlen(strip_tags(trim($value))) != 0)
73
+ $original_locales[$locale] = $value;
74
}
75
//remove empty translations from array and save as json
76
$model->{$item} = json_encode(array_filter($original_locales, function($var) {
0 commit comments