escape string to avoid fatal on search builder when sort name has an apostrophe

This commit is contained in:
Jon Goldberg 2019-03-18 17:59:47 -04:00
parent 8ef7bea74c
commit 01a199b445
No known key found for this signature in database
GPG Key ID: C2D2247364F9DB13
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class CRM_ConstituentsOnly_BAO_ConstituentsOnly {
"'{$cid}'",
"'{$cid}'",
"'{$prevCacheKey}'",
"'" . $newRows[$cid]['sort_name'] . "')",
"'" . CRM_Core_DAO::escapeString($newRows[$cid]['sort_name']) . "')",
];
CRM_Core_BAO_PrevNextCache::setItem($prevCache);
}