webstaff: Apply ordering to retrieval of combined circs in item status list
authorMike Rylander <mrylander@gmail.com>
Wed, 26 Jul 2017 19:07:38 +0000 (15:07 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 26 Jul 2017 19:07:38 +0000 (15:07 -0400)
A minor thinko caused us to not impose an order-by clause on combined circ
retrieval in the list view of the item status UI.  Now we flesh and order by
the combcirc class, rather than the circ class.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/ui/default/staff/cat/item/app.js

index dba013c..2451ddd 100644 (file)
@@ -74,7 +74,7 @@ function(egCore) {
     service.circFlesh = {
         flesh : 2,
         flesh_fields : {
-            circ : [
+            combcirc : [
                 'usr',
                 'workstation',
                 'checkin_workstation',
@@ -85,7 +85,7 @@ function(egCore) {
             ],
             au : ['card']
         },
-        order_by : {circ : 'xact_start desc'},
+        order_by : {combcirc : 'xact_start desc'},
         limit :  1
     }