diff --git a/application/Espo/Core/FieldProcessing/EmailAddress/Saver.php b/application/Espo/Core/FieldProcessing/EmailAddress/Saver.php index 8309fcb4b7..ab4534776a 100644 --- a/application/Espo/Core/FieldProcessing/EmailAddress/Saver.php +++ b/application/Espo/Core/FieldProcessing/EmailAddress/Saver.php @@ -196,7 +196,7 @@ class Saver implements SaverInterface $keyPreviousList[] = $key; } - $primary = false; + $primary = null; $toCreateList = []; $toUpdateList = []; @@ -224,7 +224,7 @@ class Saver implements SaverInterface $hash->{$key}['primary'] && $hash->{$key}['primary'] === $hashPrevious->{$key}['primary'] ) { - $primary = false; + $primary = null; } } diff --git a/application/Espo/Core/FieldProcessing/PhoneNumber/Saver.php b/application/Espo/Core/FieldProcessing/PhoneNumber/Saver.php index c3529339f3..4691883b3b 100644 --- a/application/Espo/Core/FieldProcessing/PhoneNumber/Saver.php +++ b/application/Espo/Core/FieldProcessing/PhoneNumber/Saver.php @@ -199,7 +199,7 @@ class Saver implements SaverInterface $keyPreviousList[] = $key; } - $primary = false; + $primary = null; $toCreateList = []; $toUpdateList = []; @@ -227,7 +227,7 @@ class Saver implements SaverInterface $hash->{$key}['primary'] && $hash->{$key}['primary'] === $hashPrevious->{$key}['primary'] ) { - $primary = false; + $primary = null; } }