escape string to avoid fatal on search builder when sort name has an apostrophe
This commit is contained in:
		@@ -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);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user