Fix Custom field date query builder to work with 'raw' high & low params
authoreileen <emcnaughton@wikimedia.org>
Mon, 4 Nov 2019 04:17:21 +0000 (17:17 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 4 Nov 2019 10:08:18 +0000 (23:08 +1300)
commit2206409b245dade3543be7fd8108756f6131fe36
tree86da1e6ef03ed506b6840062bb311160f0bbc8a5
parent410e3761439737e7e6806276a0c728d7ee87b657
Fix Custom field date query builder to work with 'raw' high & low params

Once we convert to datePicker we will be passing in parameters like custom_3_high, custom_3_low & custom_3_relative.

Currently we pass in custom_3_to & custom_3_from and custom_3_relative. This adds support for the new high & low
withoutt touching support for previously working or switching the field across (as yet). This paves the way for
the datepicker conversion. After a lot of brain pain I concluded the fundamental problem was the whereTables
from the CustomQuery were being merged in but actually then lost when where() is called.
CRM/Contact/BAO/Query.php
CRM/Core/BAO/CustomQuery.php
tests/phpunit/CRM/Core/BAO/CustomQueryTest.php
tests/phpunit/CRMTraits/Custom/CustomDataTrait.php