Skip to content

Commit 9125b8e

Browse files
Add support for sorting by Notes. Warn when the sort_field is unsupported
1 parent 359330b commit 9125b8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web/includes/functions.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,11 @@ function parseSort($saveToSession=false, $querySep='&') {
977977
case 'FramesScore' :
978978
$sortColumn = 'F.Score';
979979
break;
980+
case 'Notes' :
981+
$sortColumn = 'E.Notes';
982+
break;
980983
default:
984+
ZM\Warning("Unsupported sort field ".$_REQUEST['sort_field']);
981985
$sortColumn = 'E.StartDateTime';
982986
break;
983987
}

0 commit comments

Comments
 (0)