X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FMailing%2FPage%2FAJAX.php;h=5a0fef0788c1378a0f8053f682f4477cc5a3ec8e;hb=b71cb96619f284fb007d4365c33f59f088573d8f;hp=b3f76c13c3b8a7fa50e76d09801c18c83a1ac9a7;hpb=592ed22c9447a2ac8f8558de48349f946b8e4ed6;p=civicrm-core.git diff --git a/CRM/Mailing/Page/AJAX.php b/CRM/Mailing/Page/AJAX.php index b3f76c13c3..5a0fef0788 100644 --- a/CRM/Mailing/Page/AJAX.php +++ b/CRM/Mailing/Page/AJAX.php @@ -1,7 +1,7 @@ 'subject', 1 => 'creator_name', 2 => '', 3 => 'start_date', 4 => '', 5 => 'links', + 0 => 'subject', + 1 => 'creator_name', + 2 => '', + 3 => 'start_date', + 4 => '', + 5 => 'links', ); - $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']) ? CRM_Utils_Array::value(CRM_Utils_Type::escape($_REQUEST['iSortCol_0'], 'Integer'), $sortMapper) : NULL; + $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']) ? CRM_Utils_Array::value(CRM_Utils_Type::escape($_REQUEST['iSortCol_0'], 'Integer'), $sortMapper) : NULL; $sortOrder = isset($_REQUEST['sSortDir_0']) ? CRM_Utils_Type::escape($_REQUEST['sSortDir_0'], 'String') : 'asc'; $params = $_POST; @@ -91,13 +96,17 @@ class CRM_Mailing_Page_AJAX { $iFilteredTotal = $iTotal = $params['total']; $selectorElements = array( - 'subject', 'mailing_creator', 'recipients', - 'start_date', 'openstats', 'links', + 'subject', + 'mailing_creator', + 'recipients', + 'start_date', + 'openstats', + 'links', ); header('Content-Type: application/json'); echo CRM_Utils_JSON::encodeDataTableSelector($mailings, $sEcho, $iTotal, $iFilteredTotal, $selectorElements); CRM_Utils_System::civiExit(); } -} +}