Skip to content

Commit

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

if (!isset($phoneInfo['phone']) || !isset($phoneInfo['country'])){
return null;
return $value;
}
// Always return array
$phoneModel = new PhoneModel($phoneInfo['phone'], $phoneInfo['country']);
Expand Down

0 comments on commit ed6c535

Please sign in to comment.