Skip to content

Commit

Permalink
(dev/core#2979) removes the limit of 15 max values for multiple value…
Browse files Browse the repository at this point in the history
…s can also be retrieved from url in reports
  • Loading branch information
yashodha committed Dec 9, 2021
1 parent 69cd824 commit 7e875c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CRM/Report/Utils/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ public static function intParam($fieldName, &$field, &$defaults) {
// 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)) {

//change the max value to 20, ideally remove condition
if (!preg_match('/^(\d+)(,\d+){0,20}$/', $value)) {
// extra check. Also put a limit of 15 max values.
$value = NULL;
}
Expand Down

0 comments on commit 7e875c8

Please sign in to comment.