From: Galen Charlton Date: Wed, 3 Aug 2016 19:36:18 +0000 (-0400) Subject: LP#1356477: teach webstaff patron editor about staged user settings X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=aa47fc5fdc1a5a9f3889fc3f67588739ba9e1700;p=evergreen%2Fmasslnc.git 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 --- 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() ); }