Prototype for metadata based fields on search screens.
authoreileen <emcnaughton@wikimedia.org>
Thu, 25 Oct 2018 22:40:47 +0000 (11:40 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 3 Dec 2018 22:29:10 +0000 (11:29 +1300)
commite6dda67ab91efee497d3a2be54c68d31744aa5be
treec1a79668bb1938f5d68f97196b94d7b80ffe6782
parenta4e2c95509a7e8c4d9dcf27f45374aa06767b87d
Prototype for metadata based fields on search screens.

This is a first step towards making search screens more metadata driven. It switches the activity_type_id field
to being metadata-added and adds support for activity_type_id=1 via the url.

The setting of defaults is more like 'normal' forms where they are loaded & can be changed in the UI
rather than 'search methods' where they only work in conjunction with 'force'
(which also still works).

This comes out of my concern that
a) we already have url defaults added badly on this form &
b) we have had more than one PR to add more defaults - eg. https://github.com/civicrm/civicrm-core/pull/12455

So I think we should define how we really want entity data to be used with search forms & move towards it.

Note also that the tpls for Contribution Search and one of the contact search panes have been amended to
be metadata driven. I haven't tried to align with that in this step but it should be down the track
CRM/Activity/BAO/Query.php
CRM/Activity/Form/Search.php
CRM/Core/Form/Search.php