fix email addres phone number

This commit is contained in:
yuri
2019-01-17 17:24:43 +02:00
parent 971265eb6b
commit 7aab1b611a
2 changed files with 6 additions and 6 deletions
@@ -344,12 +344,12 @@ class EmailAddress extends \Espo\Core\ORM\Repositories\RDB
if (property_exists($hashPrevious, $key)) {
$new = false;
$changed =
$hash->{$key}['optOut'] != $hashPrevious->$key['optOut'] ||
$hash->{$key}['invalid'] != $hashPrevious->$key['invalid'] ||
$hash->{$key}['emailAddress'] !== $hashPrevious->$key['emailAddress'];
$hash->{$key}['optOut'] != $hashPrevious->{$key}['optOut'] ||
$hash->{$key}['invalid'] != $hashPrevious->{$key}['invalid'] ||
$hash->{$key}['emailAddress'] !== $hashPrevious->{$key}['emailAddress'];
if ($hash->{$key}['primary']) {
if ($hash->{$key}['primary'] == $hashPrevious->$key['primary']) {
if ($hash->{$key}['primary'] == $hashPrevious->{$key}['primary']) {
$primary = false;
}
}
@@ -258,9 +258,9 @@ class PhoneNumber extends \Espo\Core\ORM\Repositories\RDB
if (property_exists($hashPrevious, $key)) {
$new = false;
$changed = $hash->{$key}['type'] != $hashPrevious->$key['type'];
$changed = $hash->{$key}['type'] != $hashPrevious->{$key}['type'];
if ($hash->{$key}['primary']) {
if ($hash->{$key}['primary'] == $hashPrevious->$key['primary']) {
if ($hash->{$key}['primary'] == $hashPrevious->{$key}['primary']) {
$primary = false;
}
}