-- CRM-13627 modification for sort object in getrows function
authorDakshayani Chinchwadkar <dakshayani@dakshayani.(none)>
Tue, 19 Nov 2013 10:25:48 +0000 (15:55 +0530)
committerDakshayani Chinchwadkar <dakshayani@dakshayani.(none)>
Tue, 19 Nov 2013 10:25:48 +0000 (15:55 +0530)
----------------------------------------
* CRM-13627: AJAX filtering for profile listings
  http://issues.civicrm.org/jira/browse/CRM-13627

CRM/Profile/Selector/Listings.php

index 39fd3d4de55d915b826a7fb7cb25eb9d15f164ca..088f1d0d70ef0a0decce608883170356d6bab50e 100644 (file)
@@ -461,10 +461,9 @@ class CRM_Profile_Selector_Listings extends CRM_Core_Selector_Base implements CR
         }
         $varArray[$key] = $field;
       }
+      $sort->_vars = $varArray;
     }
 
-    $sort->_vars = $varArray;
-
     $additionalWhereClause = 'contact_a.is_deleted = 0';
     $returnQuery = NULL;
     if ($this->_multiRecordTableName) {