From 6abc64fcb2f4c1ccaa309520e1ef91a093f42ee3 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 19 Sep 2014 18:45:03 +0300 Subject: [PATCH] fix mapper json type --- application/Espo/ORM/DB/Mapper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Espo/ORM/DB/Mapper.php b/application/Espo/ORM/DB/Mapper.php index 8e4d99f142..d8f4307a47 100644 --- a/application/Espo/ORM/DB/Mapper.php +++ b/application/Espo/ORM/DB/Mapper.php @@ -864,9 +864,9 @@ abstract class Mapper implements IMapper if ($type == IEntity::FOREIGN) { continue; - } + } - if ($entity->getFetched($field) === $value) { + if ($entity->getFetched($field) === $value && $type != IEntity::JSON_ARRAY && $type != IEntity::JSON_OBJECT) { continue; }