LP#1729922 Display most recent transit. user/csharp/lp1729922_most_recent_transit_fix
authorChris Sharp <csharp@georgialibraries.org>
Wed, 29 Nov 2017 17:45:21 +0000 (12:45 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 29 Nov 2017 17:45:21 +0000 (12:45 -0500)
Currently, the new "most recent transit" feature under
Item status in the web client shows the oldest transit.
Reverse sorting so the most recent displays instead.

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/web/js/ui/default/staff/cat/item/app.js

index d1e8b5e..549e8a3 100644 (file)
@@ -836,7 +836,7 @@ function($scope , $q , $location , $routeParams , $timeout , $window , egCore ,
 
         egCore.pcrud.search('atc', 
             {target_copy : copyId},
-            {order_by : {atc : 'source_send_time DESC'}}
+            {order_by : {atc : 'source_send_time ASC'}}
 
         ).then(null, null, function(transit) {
             $scope.transit = transit;