Logging-ChangeLog-Lookup-Bugfix
authorthomas <thomaslfuss@gmx.de>
Mon, 19 May 2014 10:08:17 +0000 (12:08 +0200)
committerthomas <thomaslfuss@gmx.de>
Mon, 19 May 2014 10:08:17 +0000 (12:08 +0200)
CRM/Logging/Differ.php

index 9c27255dc212b4313901bb73ddcf9fac2295c9d0..adcd2511fa95fa22e79147e35aab2b2ab643fa74 100644 (file)
@@ -76,7 +76,7 @@ class CRM_Logging_Differ {
         $contactIdClause = "AND id = %3";
         break;
       case 'civicrm_note':
-        $contactIdClause = "AND ( entity_id = %3 AND entity_table = 'civicrm_contact' ) OR (entity_id IN (SELECT note.id FROM `{$this->db}`.log_civicrm_note note WHERE note.entity_id = %3 AND note.entity_table = 'civicrm_contact') AND entity_table = 'civicrm_note')";
+        $contactIdClause = "AND (( entity_id = %3 AND entity_table = 'civicrm_contact' ) OR (entity_id IN (SELECT note.id FROM `{$this->db}`.log_civicrm_note note WHERE note.entity_id = %3 AND note.entity_table = 'civicrm_contact') AND entity_table = 'civicrm_note'))";
         break;
       case 'civicrm_entity_tag':
         $contactIdClause = "AND entity_id = %3 AND entity_table = 'civicrm_contact'";