escape string to avoid fatal on search builder when sort name has an apostrophe #1
@ -228,7 +228,7 @@ class CRM_ConstituentsOnly_BAO_ConstituentsOnly {
|
|||||||
"'{$cid}'",
|
"'{$cid}'",
|
||||||
"'{$cid}'",
|
"'{$cid}'",
|
||||||
"'{$prevCacheKey}'",
|
"'{$prevCacheKey}'",
|
||||||
"'" . $newRows[$cid]['sort_name'] . "')",
|
"'" . CRM_Core_DAO::escapeString($newRows[$cid]['sort_name']) . "')",
|
||||||
];
|
];
|
||||||
CRM_Core_BAO_PrevNextCache::setItem($prevCache);
|
CRM_Core_BAO_PrevNextCache::setItem($prevCache);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user