Skip to content
Permalink
Browse files

Allow translations of 0.

When a translation is empty, unset the field, as it could be set to
null.
  • Loading branch information...
markstory committed Jul 11, 2014
1 parent 5489813 commit b52a30868e84cdc9643976c0c7191e19b8ac2b05
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Model/Behavior/TranslateBehavior.php
@@ -286,7 +286,8 @@ protected function _rowMapper($results, $locale) {
$name = $field . '_translation';
$translation = $row->get($name);
if (!$translation) {
if ($translation === null || $translation === false) {
$row->unsetProperty($name);
continue;
}

0 comments on commit b52a308

Please sign in to comment.
You can’t perform that action at this time.