From 25ccc9f6856020a1aec232cd0e63b16dc6efb7c2 Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 3 Jan 2017 12:24:12 +0200 Subject: [PATCH] fix orm --- application/Espo/ORM/DB/Query/Base.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/Espo/ORM/DB/Query/Base.php b/application/Espo/ORM/DB/Query/Base.php index 08a70d74b8..d8cfec0eba 100644 --- a/application/Espo/ORM/DB/Query/Base.php +++ b/application/Espo/ORM/DB/Query/Base.php @@ -293,7 +293,11 @@ abstract class Base if (is_array($attribute) && count($attribute) == 2) { if (stripos($attribute[0], 'VALUE:') === 0) { $part = substr($attribute[0], 6); - $part = $this->quote($part); + if ($part !== false) { + $part = $this->quote($part); + } else { + $part = $this->quote(''); + } } else { if (!array_key_exists($attribute[0], $entity->fields)) { $part = $this->convertComplexExpression($entity, $attribute[0], $distinct);