CRM-18521: Search results table, 'Select all' checkbox gives 'mark_x_201 is not of...
authoryashodha <yashodha.chaku@webaccessglobal.com>
Tue, 10 May 2016 10:57:41 +0000 (16:27 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Tue, 10 May 2016 10:57:41 +0000 (16:27 +0530)
----------------------------------------
* CRM-18521: Search results table, "Select all" checkbox gives  "mark_x_201 is not of the type Integer"
  https://issues.civicrm.org/jira/browse/CRM-18521

CRM/Contact/Page/AJAX.php

index 75c61dbe1d98b05ffc98ae847ca249b9dfcfd6e9..fe04a13c7aa6ef94f82df48f0268ccc63a630536 100644 (file)
@@ -760,8 +760,8 @@ LIMIT {$offset}, {$rowCount}
         $elements = explode('-', $name);
         foreach ($elements as $key => $element) {
           $elements[$key] = self::_convertToId($element);
-          CRM_Utils_Type::escapeAll($elements, 'Integer');
         }
+       CRM_Utils_Type::escapeAll($elements, 'Integer');
         CRM_Core_BAO_PrevNextCache::markSelection($cacheKey, $actionToPerform, $elements);
       }
       else {