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 af3ba80 commit 155c712Copy full SHA for 155c712
Eloquent/Traits/Translatable.php
@@ -72,6 +72,9 @@ protected static function bootTranslatable()
72
foreach ($updated_locales as $locale => $value) {
73
if (strlen(strip_tags(trim($value))) != 0)
74
$original_locales[$locale] = $value;
75
+
76
+ if ($value === '') //Remove translation if empty string given
77
+ unset($original_locales[$locale]);
78
}
79
//remove empty translations from array and save as json
80
$translations = array_filter($original_locales, function($var) {
0 commit comments