From 242c9d9a73a2606f1d398ce506b4dd7b5ff63d4c Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Thu, 23 Apr 2015 15:30:53 -0400 Subject: [PATCH] webstaff: Pass override when needed, and interpret events correctly Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- Open-ILS/web/js/ui/default/staff/circ/services/circ.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js index eea4a18235..2ff641bedc 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js @@ -870,12 +870,13 @@ function($modal , $q , egCore , egAlertDialog , egConfirmDialog) { return service.checkin({ barcode : params.copy_barcode, noop : true, + override : true, void_overdues : args.forgive_fines }).then(function(checkin_resp) { - if (checkin_resp.evt.textcode == 'SUCCESS') { + if (checkin_resp.evt[0].textcode == 'SUCCESS') { return service.checkout(params, options); } else { - alert(egCore.evt.parse(evt)); + alert(egCore.evt.parse(checkin_resp.evt[0])); return $q.reject(); } }); -- 2.11.0