Skip to content

Commit

Permalink
Merge pull request #10921 from eileenmcnaughton/cachekey
Browse files Browse the repository at this point in the history
CRM-21124 fix error on cacheKey when too long
  • Loading branch information
monishdeb authored Aug 31, 2017
2 parents da3249e + 629dd4f commit 02ff1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Dedupe/Merger.php
Original file line number Diff line number Diff line change
Expand Up @@ -1917,7 +1917,7 @@ public static function getMergeCacheKeyString($rule_group_id, $group_id, $criter
$cacheKeyString = "merge {$contactType}";
$cacheKeyString .= $rule_group_id ? "_{$rule_group_id}" : '_0';
$cacheKeyString .= $group_id ? "_{$group_id}" : '_0';
$cacheKeyString .= !empty($criteria) ? serialize($criteria) : '_0';
$cacheKeyString .= !empty($criteria) ? md5(serialize($criteria)) : '_0';
if ($checkPermissions) {
$contactID = CRM_Core_Session::getLoggedInContactID();
if (!$contactID) {
Expand Down

0 comments on commit 02ff1fd

Please sign in to comment.