CRM-14451 - remove undefined / un-used variable.
authorDave Greenberg <dave@civicrm.org>
Thu, 10 Apr 2014 20:37:16 +0000 (13:37 -0700)
committerDave Greenberg <dave@civicrm.org>
Thu, 10 Apr 2014 20:37:16 +0000 (13:37 -0700)
----------------------------------------
* CRM-14451:
  https://issues.civicrm.org/jira/browse/CRM-14451

CRM/Contact/Page/AJAX.php

index a60304a96267aca93c540883f5bc15fa7d9f21fd..93992854879bcc8e995b5d2fb564c6b202fbb1c1 100644 (file)
@@ -1074,7 +1074,7 @@ LIMIT {$offset}, {$rowCount}
     $sEcho     = CRM_Utils_Type::escape($_REQUEST['sEcho'], 'Integer');
     $offset    = isset($_REQUEST['iDisplayStart']) ? CRM_Utils_Type::escape($_REQUEST['iDisplayStart'], 'Integer') : 0;
     $rowCount  = isset($_REQUEST['iDisplayLength']) ? CRM_Utils_Type::escape($_REQUEST['iDisplayLength'], 'Integer') : 25;
-    $sort      = isset($_REQUEST['iSortCol_0']) ? $sortMapper[CRM_Utils_Type::escape($_REQUEST['iSortCol_0'], 'Integer')] : 'sort_name';
+    $sort      = 'sort_name';
     $sortOrder = isset($_REQUEST['sSortDir_0']) ? CRM_Utils_Type::escape($_REQUEST['sSortDir_0'], 'String') : 'asc';
 
     $gid         = isset($_REQUEST['gid']) ? CRM_Utils_Type::escape($_REQUEST['gid'], 'Integer') : 0;