Metadata fix in activity search
authoreileen <emcnaughton@wikimedia.org>
Fri, 21 Aug 2020 05:20:58 +0000 (17:20 +1200)
committereileen <emcnaughton@wikimedia.org>
Fri, 21 Aug 2020 05:20:58 +0000 (17:20 +1200)
commit8df0c9e052c26da551c026ded26319001784b4fd
treeb5739fdb01c6eea2c9ed3799729cfa0045a03df8
parentf22e70d515987cd2dcc7b29b160d9b2a18832448
Metadata fix in activity search

This fixes it such that even if the pseudofield (activity_type) has a 'type' the 'type'
from the 'real field' is used in the WHERE query. This mostly prevents a test fail per

https://github.com/civicrm/civicrm-core/pull/18147

if we improve the metadata. It's a bit of a non-fail fail - ie we are checking the where
clause has activity_type_id = 3 vs '3' and my testing has not shown a performance difference
but we don't want the test to be changed to the less good version
CRM/Activity/BAO/Query.php
CRM/Contact/BAO/Query.php