From aa47fc5fdc1a5a9f3889fc3f67588739ba9e1700 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 3 Aug 2016 15:36:18 -0400 Subject: [PATCH] LP#1356477: teach webstaff patron editor about staged user settings This patch also fixes a bug that preferred the webstaff patron editor from successfully removing a staged patron upon completing the registration of the patron. Signed-off-by: Galen Charlton Signed-off-by: Mike Rylander --- Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js index d08d69971e..10054530cf 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js @@ -791,6 +791,10 @@ angular.module('egCoreMod') if (user.usrname == '') user.usrname = card.barcode; } + + angular.forEach(cuser.settings, function(setting) { + service.user_settings[setting.setting()] = Boolean(setting.value()); + }); } // copy select values from the cloned user to the new user. @@ -1008,7 +1012,7 @@ angular.module('egCoreMod') 'open-ils.actor', 'open-ils.actor.user.stage.delete', egCore.auth.token(), - service.stage_user.row_id() + service.stage_user.user.row_id() ); } -- 2.43.2