Fix relative dates when searching on activity_date_time
authoreileen <emcnaughton@wikimedia.org>
Tue, 12 Mar 2019 00:39:51 +0000 (13:39 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 12 Mar 2019 04:01:07 +0000 (17:01 +1300)
commit8fc9f99a7201acad4c66ba1c652c2218e1466aa4
tree1139a06078ae8ea1bf95b9ef2d6cc8dd98b9a99c
parenta6b674bb1aab0a6e4d4c593c985020fbef726cce
Fix relative dates when searching on activity_date_time

In testing I found that there is an unreleased regression relating to our date conversion
on activity_date_time in activity search. This fixes and adds tests. (regression was it
was being ignored).

Note that the option value is capitalised which makes the capitalisation slightly odd but
I think accepting that is the least bad option
CRM/Contact/BAO/Query.php
tests/phpunit/CRM/Activity/Form/SearchTest.php