Mwalker has submitted this change and it was merged.

Change subject: Refine the "force" hack to ensure that the search criteria are 
really empty.  We were breaking results paging.
......................................................................


Refine the "force" hack to ensure that the search criteria are really empty.  
We were breaking results paging.

Change-Id: Ib49fe9d3726af0b5491b7ee98b19b8aef392acbd
---
M CRM/Contribute/Form/Search.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Mwalker: Verified; Looks good to me, approved



diff --git a/CRM/Contribute/Form/Search.php b/CRM/Contribute/Form/Search.php
index f389303..775bf9e 100644
--- a/CRM/Contribute/Form/Search.php
+++ b/CRM/Contribute/Form/Search.php
@@ -162,7 +162,7 @@
     /*
      * WMF HACK: "force" causes a search with null criteria.  Disable until 
this is fixed.
      */
-    if ( $this->_context === "search" ) {
+    if ( $this->_context === "search" && CRM_Utils_Request::retrieve('qfKey', 
'String') === NULL ) {
       $this->_force = false;
     }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/72552
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib49fe9d3726af0b5491b7ee98b19b8aef392acbd
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm/civicrm
Gerrit-Branch: master
Gerrit-Owner: Adamw <[email protected]>
Gerrit-Reviewer: Katie Horn <[email protected]>
Gerrit-Reviewer: Mwalker <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to