X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FLogging%2FSchema.php;h=72c8322a565ffa91c6beb76a1fd71268c403ec3e;hb=4e0d128b6500bf07e7cdd4037b0b28a205399904;hp=8b5f53d6b3cb8e7518f0f6e6ab8c4e16b6393f47;hpb=ac68453d7a1ba000536e024c8b55ceedb6e8ba40;p=civicrm-core.git diff --git a/CRM/Logging/Schema.php b/CRM/Logging/Schema.php index 8b5f53d6b3..72c8322a56 100644 --- a/CRM/Logging/Schema.php +++ b/CRM/Logging/Schema.php @@ -913,6 +913,13 @@ COLS; // logging is enabled, so now lets create the trigger info tables foreach ($tableNames as $table) { + if (!isset($this->logTableSpec[$table])) { + // Per testIgnoreCustomTableByHook this would be unset if a hook had + // intervened to prevent logging / triggers on this table. + // This could go to the extent of blocking the updates to 'modified_date' + // which makes sense, in particular, for calculated fields. + continue; + } $columns = $this->columnsOf($table, $force); // only do the change if any data has changed