fix email addres phone number
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user