CRM/Logging - Fix log table exceptions
authorPatrick Figel <pfigel@greenpeace.org>
Fri, 22 Feb 2019 19:38:30 +0000 (20:38 +0100)
committerPatrick Figel <pfigel@greenpeace.org>
Fri, 22 Feb 2019 19:46:06 +0000 (20:46 +0100)
commit9c3c84d12d479d94fe43d79b004c479ee882829d
tree5ea5c02b171d710a06c44d50fa362e0ddbc9965c
parentab19148eb4a8a2f1de341195f79d175ae97292e2
CRM/Logging - Fix log table exceptions

This fixes a bug that caused columns that were excluded from being
considered "log-worthy" changes to be logged anyway. That happened
because columns were extracted with backticks but compared to strings
without backticks. To preserve compatibility with exceptions set by
alterLogTables which could contain backticks, the comparison is
performed against the column name with and without backticks.
CRM/Logging/Schema.php
tests/phpunit/CRM/Logging/SchemaTest.php