We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3f40b38 + f1b155a commit 7af5faeCopy full SHA for 7af5fae
src/TranslatableFieldMixin.php
@@ -76,7 +76,7 @@ public function translatable()
76
: config('nova-translatable.fill_other_locales_from', null);
77
78
// Fix strings being casted to floats
79
- if ($this instanceof Text && !$this instanceof Number) {
+ if ($this instanceof Text && !$this instanceof Number && !empty($value)) {
80
foreach ($value as $key => $val) {
81
$value[$key] = ($val === null ? null : (string) $val);
82
}
0 commit comments