From 2359255050736aff6f8bf3f89fadfae049d8a7e3 Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 6 Dec 2021 13:07:07 +0530 Subject: [PATCH] change the limit --- CRM/Report/Utils/Get.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Report/Utils/Get.php b/CRM/Report/Utils/Get.php index 536fe3f422..20127361a1 100644 --- a/CRM/Report/Utils/Get.php +++ b/CRM/Report/Utils/Get.php @@ -170,10 +170,12 @@ class CRM_Report_Utils_Get { // send the type as string so that multiple values can also be retrieved from url. // for e.g url like - "memtype_in=in&memtype_value=1,2,3" $value = self::getTypedValue("{$fieldName}_value", CRM_Utils_Type::T_STRING); - if (!preg_match('/^(\d+)(,\d+){0,14}$/', $value)) { - // extra check. Also put a limit of 15 max values. + + //change the max value to 20, ideally remove condition + if (!preg_match('/^(\d+)(,\d+){0,20}$/', $value)) { $value = NULL; } + if ($value !== NULL) { $defaults["{$fieldName}_value"] = explode(",", $value); $defaults["{$fieldName}_op"] = $fieldOP; -- 2.25.1