From 78fe145dd36cad9e283f3e33b0a52ac76fa0d015 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Mon, 14 Mar 2016 15:38:27 +0530 Subject: [PATCH] CRM-18224 fix --- CRM/Core/BAO/CustomQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/CustomQuery.php b/CRM/Core/BAO/CustomQuery.php index 67cf0c624a..12cbfaa4a6 100644 --- a/CRM/Core/BAO/CustomQuery.php +++ b/CRM/Core/BAO/CustomQuery.php @@ -349,7 +349,7 @@ SELECT f.id, f.label, f.data_type, } // CRM-14563,CRM-16575 : Special handling of multi-select custom fields - if ($isSerialized && !empty($value) && !strstr($op, 'NULL') && !strstr($op, 'LIKE')) { + if ($isSerialized && !CRM_Utils_System::isNull($value) && !strstr($op, 'NULL') && !strstr($op, 'LIKE')) { $sp = CRM_Core_DAO::VALUE_SEPARATOR; if (strstr($op, 'IN')) { $value = str_replace(",", "$sp|$sp", $value); -- 2.25.1