change sortHeader to include eid if it is in the request

This commit is contained in:
Isaac Connor 2019-08-08 13:34:10 -04:00
parent 3a142df14f
commit df285006d2
1 changed files with 8 additions and 1 deletions

View File

@ -1472,7 +1472,14 @@ function getPagination( $pages, $page, $maxShortcuts, $query, $querySep='&'
function sortHeader( $field, $querySep='&' ) { function sortHeader( $field, $querySep='&' ) {
global $view; global $view;
return '?view='.$view.$querySep.'page=1'.$_REQUEST['filter']['query'].$querySep.'sort_field='.$field.$querySep.'sort_asc='.($_REQUEST['sort_field'] == $field?!$_REQUEST['sort_asc']:0).$querySep.'limit='.validInt($_REQUEST['limit']); return implode($querySep, array(
'?view='.$view,
'page=1'.$_REQUEST['filter']['query'],
'sort_field='.$field,
'sort_asc='.($_REQUEST['sort_field'] == $field ? !$_REQUEST['sort_asc'] : 0),
'limit='.validInt($_REQUEST['limit']),
($_REQUEST['eid'] ? 'eid='.$_REQUEST['eid'] : '' ),
));
} }
function sortTag( $field ) { function sortTag( $field ) {