Consolidate getFormValues on contribution search
authoreileen <emcnaughton@wikimedia.org>
Thu, 3 Oct 2019 06:19:13 +0000 (08:19 +0200)
committereileen <emcnaughton@wikimedia.org>
Fri, 4 Oct 2019 03:58:48 +0000 (05:58 +0200)
commit5f1bf12fafcb0f44555caa6253e988c9e4b4d68d
treeeff01cb2064f66e0ea11ee38fe2dfd9057410480
parent23e3ece040e4515f468883bf38e06971249d6262
Consolidate getFormValues on contribution search

This consolidates 2 places where formValues are determined on contribution search. In one place
force is handled in the other retrieving from the form is handled. It seems Ok to handle both in
one place & call that. This might help iron on some glitches Monish is hitting on #15370

We should probably add saved search retrieval in too

To confirm this works use this url
civicrm/contribute/search?reset=1&reset=1&sort_name=p&receive_date_high=20180101&force=1

- it should filter. If you add another criteria to the form afterwards the url criteria should
be present on the form from the url & the new one should also be respected. If you actively remove the url
criteria on the form it is ignored in the search
CRM/Contribute/Form/Search.php
CRM/Core/Form/Search.php