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

Open
jon wants to merge 1 commits from jon/com.dpci.constituentsonly:stringescape into master

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);
}