-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "[REF] use generic loadStandardSearchOptionsFromUrl". Fix search selections. #14918
Conversation
…ch selections. Overview ------------------- This reverts commit a5ca2ad and fixes a bug in management of the prev/next cache. The bug is visible when following this procedure: 1. In browser, use "Quick search" to search for text "am" 2. In browser, select checkboxes next to two items 3. In MySQL CLI, run `select * from civicrm_prevnext_cache where is_selected =1;` 4. In browser, continue to next page. Observe that there are no more selection. 5. In MySQL CLI, re-run SQL query. Observe that the selections have disappeared. Before ------------------- Proceeding to another page of search results causes loss of selections After ------------------- Selections are preserved
(Standard links)
|
@totten i note this is against master but not 5.16? |
Thanks @seamuslee001. Fixed. |
This is fairly simple revert (based on bisecting to uncover the problem). FWIW, the difference appears to stem from changing the lookup params for diff --git a/CRM/Core/Form/Search.php b/CRM/Core/Form/Search.php
index 2957645991..4086c1b3a4 100644
--- a/CRM/Core/Form/Search.php
+++ b/CRM/Core/Form/Search.php
@@ -414,7 +414,7 @@ class CRM_Core_Form_Search extends CRM_Core_Form {
*/
protected function loadStandardSearchOptionsFromUrl() {
$this->_reset = CRM_Utils_Request::retrieve('reset', 'Boolean');
- $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE);
+ $this->_force = CRM_Utils_Request::retrieve('force', 'Boolean');
$this->_limit = CRM_Utils_Request::retrieve('limit', 'Positive', $this);
$this->_context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this, FALSE, 'search');
$this->_ssID = CRM_Utils_Request::retrieve('ssID', 'Positive', $this); I've not investigated the goals/context/scope of the original change - so don't have an opinion on which framing is better. |
CC @monishdeb |
Agree with this revert. Tested and does fix the issue mentioned in the PR description. |
Overview
This reverts commit a5ca2ad
and fixes a bug in management of the prev/next cache. The
bug is visible when following this procedure:
select * from civicrm_prevnext_cache where is_selected =1;
. Observe that there are two selections.Before
Proceeding to another page of search results causes loss of selections
After
Selections are preserved