e-notice fix & unit test
authoreileen <emcnaughton@wikimedia.org>
Thu, 4 Jul 2019 02:36:30 +0000 (14:36 +1200)
committereileen <emcnaughton@wikimedia.org>
Sun, 7 Jul 2019 22:01:56 +0000 (10:01 +1200)
commit89d7d62ee836696f38c4289a9417adf44b576d16
treedb503eb6b202b938a01ca5c18f9b18880ea07ad7
parentc5295cd04df79ef10d6590e48519bc16412012c6
e-notice fix & unit test

This addresses a fairly obscure enotice. The notice occurs when a table has been excluded from
triggers by a hook (as makes sense if the table includes only calculated fields) and then a new
custom field is added to the table (or presumably edited or removed). In this case we should
not go through the whole trigger handling loop.

Note I see it as a feature rather than a bug that this would also apply to triggers that
update the contact.modified_date as it's not helpful to update this when updating a
calculation - if someone decides to intervene by hook we should trust them
CRM/Logging/Schema.php
tests/phpunit/CRM/Logging/SchemaTest.php