From b719b8593445f184518838ba3ee3cff724a34180 Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Thu, 25 Jan 2018 12:50:59 -0500 Subject: [PATCH] LP#1738249 - Fix checkout_workstation display issue Addresses the issue with checkout workstation, by attaching as a object property to the flatCopy hash. Also makes sure the pcrud call uses combcirc. Signed-off by: Cesar Velez Signed-off-by: Terran McCanna Signed-off-by: Galen Charlton Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- Open-ILS/src/templates/staff/cat/item/t_list.tt2 | 2 +- Open-ILS/web/js/ui/default/staff/circ/services/item.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 index 521d780f75..64d38fd8dd 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_list.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_list.tt2 @@ -86,7 +86,7 @@ - + diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/item.js b/Open-ILS/web/js/ui/default/staff/circ/services/item.js index 16b97fab8a..1a6e839ce8 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/item.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/item.js @@ -62,7 +62,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog } service.getCirc = function(id) { - return egCore.pcrud.search('aacs', { target_copy : id }, + return egCore.pcrud.search('combcirc', { target_copy : id }, service.circFlesh).then(function(circ) {return circ}); } @@ -152,6 +152,7 @@ function(egCore , egCirc , $uibModal , $q , $timeout , $window , egConfirmDialog flatCopy._circ_summary = egCore.idl.toHash(copyData.circ_summary, true); flatCopy._circ_lib = copyData.circ.circ_lib(); flatCopy._duration = copyData.circ.duration(); + flatCopy._checkout_ws = copyData.circ.workstation().name(); } flatCopy.index = service.index++; flatCopy.copy_alert_count = copyData.copy.copy_alerts().filter(function(aca) { -- 2.43.2