-
- Downloads
#1374 Fix search formValue handling on contribution search
This fixes 2 issues 1) Search params being lost when editing a related entity per #1374 2) force=1&sort_name=p not working in contribution search url In digging I concluded the problem is we have 3 underlying arrays which we keep jumbling together 1) formValues - the actual submitted values, augmented by any url passed params 2) the default values - values to load by default on the form 3) our working query params - a copy of formValues that we have prepared for the query We need to stop mangling them. I added subtle code comments
Showing
- CRM/Contact/Form/Search/Advanced.php 1 addition, 1 deletionCRM/Contact/Form/Search/Advanced.php
- CRM/Contribute/Form/Search.php 13 additions, 12 deletionsCRM/Contribute/Form/Search.php
- CRM/Core/Form/Search.php 20 additions, 1 deletionCRM/Core/Form/Search.php
- tests/phpunit/CRM/Contact/BAO/SavedSearchTest.php 6 additions, 3 deletionstests/phpunit/CRM/Contact/BAO/SavedSearchTest.php
Please register or sign in to comment