LP1956970 Sort Patron Notes - Most Recent First
authorTerran McCanna <tmccanna@georgialibraries.org>
Mon, 31 Jan 2022 22:26:15 +0000 (17:26 -0500)
committerMike Rylander <mrylander@gmail.com>
Fri, 25 Mar 2022 21:30:32 +0000 (17:30 -0400)
This changes the default sort order of patron notes from oldest
first to most recent first.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>

Open-ILS/web/js/ui/default/staff/circ/patron/app.js

index 0c4268a..127d86c 100644 (file)
@@ -788,7 +788,7 @@ function($scope , $q , $routeParams,  egCore , $uibModal , patronSvc , egCirc ,
    
     var activeGrid = $scope.activeGridControls = {
         setSort : function() {
-            return ['create_date'];
+            return [{'create_date' : 'DESC'}];
         },
         setQuery : function() {
             return {
@@ -804,7 +804,7 @@ function($scope , $q , $routeParams,  egCore , $uibModal , patronSvc , egCirc ,
 
     var archiveGrid = $scope.archiveGridControls = {
         setSort : function() {
-            return ['create_date'];
+            return [{'create_date' : 'DESC'}];
         },
         watchQuery : function() {
             return {