We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 566f715 commit 84c3d77Copy full SHA for 84c3d77
Behavior/Translate/TranslateStrategyTrait.php
@@ -111,7 +111,7 @@ protected function unsetEmptyFields($entity)
111
foreach ($translations as $locale => $translation) {
112
$fields = $translation->extract($this->_config['fields'], false);
113
foreach ($fields as $field => $value) {
114
- if (strlen($value) === 0) {
+ if ($value === null || strlen($value) === 0) {
115
$translation->unset($field);
116
}
117
0 commit comments