if ($action == 'select') {
$whereClause .= "AND is_selected = 0";
$sql = "UPDATE civicrm_prevnext_cache SET is_selected = 1 {$whereClause} {$entity_whereClause}";
- $params[1] = array("%{$cacheKey}%", 'String');
+ $params[1] = array("{$cacheKey}%", 'String');
}
elseif ($action == 'unselect') {
$whereClause .= "AND is_selected = 1";
WHERE cacheKey LIKE %1 AND is_selected = 1
{$entity_whereClause}
";
- $params[1] = array("%{$cacheKey}%", 'String');
+ $params[1] = array("{$cacheKey}%", 'String');
}
CRM_Core_DAO::executeQuery($sql, $params);
}
$entity_whereClause
ORDER BY id
";
- $params[1] = array("%{$cacheKey}%", 'String');
+ $params[1] = array("{$cacheKey}%", 'String');
$contactIds = array($cacheKey => array());
$cIdDao = CRM_Core_DAO::executeQuery($sql, $params);
AND is_selected=1
AND cacheKey NOT LIKE %2
";
- $params1[1] = array("%{$cacheKey}%", 'String');
- $params1[2] = array("%{$cacheKey}_alphabet%", 'String');
+ $params1[1] = array("{$cacheKey}%", 'String');
+ $params1[2] = array("{$cacheKey}_alphabet%", 'String');
$dao = CRM_Core_DAO::executeQuery($query, $params1);
$val = array( );
AND is_selected = 1
AND cacheKey NOT LIKE %2
";
- $params1[1] = array("%{$cacheKey}%", 'String');
- $params1[2] = array("%{$cacheKey}_alphabet%", 'String');
+ $params1[1] = array("{$cacheKey}%", 'String');
+ $params1[2] = array("{$cacheKey}_alphabet%", 'String');
$paramsTotal = CRM_Core_DAO::singleValueQuery($query, $params1);
$params['total'] = $paramsTotal;
$obj->_pager = new CRM_Utils_Pager($params);