Revert WEB_EVENT_SORT_FIELD change from StartTime to StartDateTime back to StartTime. StartTime is the column name.

pull/3065/head
Isaac Connor 2020-10-20 19:23:03 -04:00
parent b950962f98
commit d88fd5e4e0
1 changed files with 3 additions and 2 deletions

View File

@ -366,6 +366,7 @@ for ( $i=0; $i < count($terms); $i++ ) {
<td>
<label for="filter[Query][sort_field]"><?php echo translate('SortBy') ?></label>
<?php
# Note: The keys need to be actual column names
$sort_fields = array(
'Id' => translate('AttrId'),
'Name' => translate('AttrName'),
@ -373,7 +374,7 @@ $sort_fields = array(
'DiskSpace' => translate('AttrDiskSpace'),
'Notes' => translate('AttrNotes'),
'MonitorName' => translate('AttrMonitorName'),
'StartDateTime' => translate('AttrStartDateTime'),
'StartTime' => translate('AttrStartDateTime'),
'Length' => translate('AttrDuration'),
'Frames' => translate('AttrFrames'),
'AlarmFrames' => translate('AttrAlarmFrames'),
@ -381,7 +382,7 @@ $sort_fields = array(
'AvgScore' => translate('AttrAvgScore'),
'MaxScore' => translate('AttrMaxScore'),
);
echo htmlSelect( 'filter[Query][sort_field]', $sort_fields, $filter->sort_field() );
echo htmlSelect('filter[Query][sort_field]', $sort_fields, $filter->sort_field());
$sort_dirns = array(
'1' => translate('SortAsc'),
'0' => translate('SortDesc')