LP1010635: Make bre dates populate in Item Status grid user/sandbergja/lp1010635_bre_dates_not_populating_in_item_status
authorJane Sandberg <sandbej@linnbenton.edu>
Sun, 3 Jun 2018 22:50:40 +0000 (15:50 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Sun, 3 Jun 2018 22:50:40 +0000 (15:50 -0700)
To test:
1) Enable the Date Record Created and Date Record Last Edited columns
in Item Status.
2) Scan an item barcode into Item Status.  Note that the two columns
you enabled are empty.
3) Apply this commit.
4) Reload the Item Status screen, and scan your barcode again.  The
dates should now be populated.

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/web/js/ui/default/staff/circ/services/item.js

index b1285af..98ee5f9 100644 (file)
@@ -23,7 +23,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog
         select : { 
             // avoid fleshing MARC on the bre
             // note: don't add simple_record.. not sure why
-            bre : ['id','tcn_value','creator','editor'],
+            bre : ['id','tcn_value','creator','editor', 'create_date', 'edit_date'],
         } 
     }