Skip to content

Commit

Permalink
Add support for sorting by Notes. Warn when the sort_field is unsuppo…
Browse files Browse the repository at this point in the history
…rted
  • Loading branch information
Isaac Connor committed Nov 27, 2024
1 parent 359330b commit 9125b8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,11 @@ function parseSort($saveToSession=false, $querySep='&') {
case 'FramesScore' :
$sortColumn = 'F.Score';
break;
case 'Notes' :
$sortColumn = 'E.Notes';
break;
default:
ZM\Warning("Unsupported sort field ".$_REQUEST['sort_field']);
$sortColumn = 'E.StartDateTime';
break;
}
Expand Down

0 comments on commit 9125b8e

Please sign in to comment.