From e557782c64f4b487a14a65a4bd21fc6a73c00e54 Mon Sep 17 00:00:00 2001 From: yuri Date: Fri, 4 Aug 2017 14:05:28 +0300 Subject: [PATCH] fix notice --- application/Espo/Core/SelectManagers/Base.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/Espo/Core/SelectManagers/Base.php b/application/Espo/Core/SelectManagers/Base.php index 4fcb56b582..ab47175554 100644 --- a/application/Espo/Core/SelectManagers/Base.php +++ b/application/Espo/Core/SelectManagers/Base.php @@ -188,6 +188,8 @@ class Base $whereClause = array(); foreach ($where as $item) { + if (!isset($item['type'])) continue; + if ($item['type'] == 'bool' && !empty($item['value']) && is_array($item['value'])) { foreach ($item['value'] as $filter) { $p = $this->getBoolFilterWhere($filter); @@ -210,6 +212,8 @@ class Base $additionalFilters = array(); foreach ($where as $item) { + if (!isset($item['type'])) continue; + $type = $item['type']; if (!in_array($type, $ignoreTypeList)) { $part = $this->getWherePart($item, $result);