escape string to avoid fatal on search builder when sort name has an apostrophe
This commit is contained in:
parent
8ef7bea74c
commit
01a199b445
@ -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