Update dao.tpl to not make presence of import or export required to add 'where' param
authoreileen <emcnaughton@wikimedia.org>
Mon, 15 Apr 2019 03:25:52 +0000 (13:25 +1000)
committereileen <emcnaughton@wikimedia.org>
Tue, 16 Apr 2019 21:27:07 +0000 (07:27 +1000)
commitbf144e748c568012e20bca579d1c742af1a0ef00
tree266f185f0c51249b51df16554f080ffc62592fd4
parentff2c44653d8090a79d339863a0f252a3123936c9
Update dao.tpl to not make presence of import or export required to add 'where' param

Import & export have been hopelessly overloaded & misued in the code. One reason is that without them
'where' is not present. Logically import & export should have a narrow usage and should not
be a pre-requisite for being available as a search field, in reality not so much.

This simply makes the 'where' field available regardless of the presence of these fields

By doing this we can make the metadata in the Query object able to handle more fields
without special handling (e.g Contribution Recur fields)
CRM/Core/CodeGen/Util/Template.php
xml/templates/dao.tpl