From 98947815d42b8f08dce5894780456b82e91dcf9e Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 5 Jan 2018 14:55:56 -0500 Subject: [PATCH] LP#1729934 Webstaff penalty create org/depth repair Apply correct org unit to patron penalties created in the web staff client. Specifically, be sure the standing penalty depth value is honored when set. Commit replaces manual pcrud creation with the XUL-tested API, which calculates the correct org unit by depth for us. Signed-off-by: Bill Erickson Signed-off-by: Cesar Velez --- Open-ILS/web/js/ui/default/staff/circ/services/circ.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 47668be35e..9fed9ed37d 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 @@ -1798,7 +1798,12 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, } pen.staff(egCore.auth.user().id()); pen.set_date('now'); - return egCore.pcrud.create(pen); + + return egCore.net.request( + 'open-ils.actor', + 'open-ils.actor.user.penalty.apply', + egCore.auth.token(), pen + ); } ); } -- 2.11.0