diff --git a/application/Espo/Tools/Import/Import.php b/application/Espo/Tools/Import/Import.php index 9a62d8d975..ff121b0a27 100644 --- a/application/Espo/Tools/Import/Import.php +++ b/application/Espo/Tools/Import/Import.php @@ -753,7 +753,7 @@ class Import } } - if ($value === '' && $attributeType !== Entity::BOOL) { + if ($value === '' && $attributeType !== Entity::BOOL && $entity->isNew()) { return; } @@ -793,10 +793,14 @@ class Import $type = $entity->getAttributeType($attribute); - if ($type !== Entity::BOOL && strtolower($value) === 'null') { + if ($type !== Entity::BOOL && $value === '') { return null; } + /*if ($type !== Entity::BOOL && strtolower($value) === 'null') { + return null; + }*/ + $fieldDefs = $this->entityManager ->getDefs() ->getEntity($entity->getEntityType())