From 894223d85526e450990a0ee078e6e0f76480fcb0 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Tue, 12 Jul 2016 11:26:02 +0530 Subject: [PATCH] minor fix --- CRM/Core/BAO/CustomQuery.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Core/BAO/CustomQuery.php b/CRM/Core/BAO/CustomQuery.php index ab510d164b..51f06e319f 100644 --- a/CRM/Core/BAO/CustomQuery.php +++ b/CRM/Core/BAO/CustomQuery.php @@ -348,7 +348,8 @@ SELECT f.id, f.label, f.data_type, // CRM-19006: escape characters like comma, | before building regex pattern $value = (array) $value; foreach ($value as $key => $val) { - $value[$key] = str_replace(array('|', '[', ']', ','), array('[:spearator:]', '\[', '\]', '[:comma:]'), $val); + $value[$key] = str_replace(array('[', ']', ','), array('\[', '\]', '[:comma:]'), $val); + $value[$key] = str_replace('|', '[:separator:]', $value[$key]); } $value = implode(',', $value); } -- 2.25.1