CRM-14672 exclude _menu table from logging triggers
authorBrian Shaughnessy <brian@lcdservices.biz>
Fri, 9 May 2014 19:06:46 +0000 (15:06 -0400)
committerBrian Shaughnessy <brian@lcdservices.biz>
Fri, 9 May 2014 19:06:46 +0000 (15:06 -0400)
CRM/Logging/Schema.php

index 9abdd925b6075a153af94e909c1ec5f3c145cdcc..c05b3ce27200ef8e71f35e877f9966f109590e0f 100644 (file)
@@ -70,13 +70,14 @@ AND    TABLE_NAME LIKE 'civicrm_%'
       $this->tables[] = $dao->TABLE_NAME;
     }
 
-    // do not log temp import, cache and log tables
+    // do not log temp import, cache, menu and log tables
     $this->tables = preg_grep('/^civicrm_import_job_/', $this->tables, PREG_GREP_INVERT);
     $this->tables = preg_grep('/_cache$/', $this->tables, PREG_GREP_INVERT);
     $this->tables = preg_grep('/_log/', $this->tables, PREG_GREP_INVERT);
     $this->tables = preg_grep('/^civicrm_task_action_temp_/', $this->tables, PREG_GREP_INVERT);
     $this->tables = preg_grep('/^civicrm_export_temp_/', $this->tables, PREG_GREP_INVERT);
     $this->tables = preg_grep('/^civicrm_queue_/', $this->tables, PREG_GREP_INVERT);
+    $this->tables = preg_grep('/^civicrm_menu/', $this->tables, PREG_GREP_INVERT); //CRM-14672
 
     // do not log civicrm_mailing_event* tables, CRM-12300
     $this->tables = preg_grep('/^civicrm_mailing_event_/', $this->tables, PREG_GREP_INVERT);