X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FGroup%2FPage%2FAJAX.php;h=a5ed2d72b14d6bf51301fbe4e86317df68118d27;hb=22e263ad985b62de5cf7bdaf09555bfb3f0cd322;hp=cffa28a9ef9248aebb7ee4f6f408c33c03bd8293;hpb=fd518f77d6d304ac413ac93a517779ba2418c247;p=civicrm-core.git diff --git a/CRM/Group/Page/AJAX.php b/CRM/Group/Page/AJAX.php index cffa28a9ef..a5ed2d72b1 100644 --- a/CRM/Group/Page/AJAX.php +++ b/CRM/Group/Page/AJAX.php @@ -1,7 +1,7 @@ 'groups.title', 1 => 'count', 2 => 'createdBy.sort_name', 3 => '', - 4 => 'groups.group_type', 5 => 'groups.visibility', + 0 => 'groups.title', + 1 => 'count', + 2 => 'createdBy.sort_name', + 3 => '', + 4 => 'groups.group_type', + 5 => 'groups.visibility', ); $sEcho = CRM_Utils_Type::escape($_REQUEST['sEcho'], 'Integer'); @@ -91,10 +94,10 @@ class CRM_Group_Page_AJAX { if (empty($params['showOrgInfo'])) { unset($selectorElements[6]); } - //add setting so this can be tested by unit test - //@todo - ideally the portion of this that retrieves the groups should be extracted into a function separate - // from the one which deals with web inputs & outputs so we have a properly testable & re-usable function - if(!empty($params['is_unit_test'])) { + //add setting so this can be tested by unit test + //@todo - ideally the portion of this that retrieves the groups should be extracted into a function separate + // from the one which deals with web inputs & outputs so we have a properly testable & re-usable function + if (!empty($params['is_unit_test'])) { return array($groups, $iFilteredTotal); } echo CRM_Utils_JSON::encodeDataTableSelector($groups, $sEcho, $iTotal, $iFilteredTotal, $selectorElements); @@ -102,4 +105,3 @@ class CRM_Group_Page_AJAX { } } } -