From ec516c46581e3163251968a15d1acbd506e61fe6 Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Mon, 21 Sep 2015 13:15:03 -0400 Subject: [PATCH] RT#765026, patch for null values in civicrm_acl_cache --- CRM/ACL/BAO/Cache.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CRM/ACL/BAO/Cache.php b/CRM/ACL/BAO/Cache.php index 86b4fda4f0..9bafc8fad5 100644 --- a/CRM/ACL/BAO/Cache.php +++ b/CRM/ACL/BAO/Cache.php @@ -69,9 +69,15 @@ SELECT acl_id "; $params = array(1 => array($id, 'Integer')); + /* this is related to RT#765026 + Something is occasionally inserting records in civicrm_acl_cache with id null. + That causes i for our anonymous visitors who want to sign petitions. + Removed. Ward, 2012-07-20 */ + /* if ($id == 0) { - $query .= " OR contact_id IS NULL"; + query .= " OR contact_id IS NULL"; } + t*/ $dao = CRM_Core_DAO::executeQuery($query, $params); -- 2.25.1