Skip to content

Commit

Permalink
Fixes bug with Address field when is not translateble. #51
Browse files Browse the repository at this point in the history
  • Loading branch information
andrelopez committed Jun 11, 2018
1 parent ed6c535 commit f0d5025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fields/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function normalizeValue($value, ElementInterface $element = null)

// return null when clearing address to save null value on content table
if (!$addressModel->validate(null, false)) {
return null;
return $value;
}

return $addressModel;
Expand Down

0 comments on commit f0d5025

Please sign in to comment.