From d6b34b80c1a353ce459ad4b660adfeeda14f6fe1 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Fri, 27 May 2022 16:48:41 -0400 Subject: [PATCH] LP#1976126: Don't send useless (big) user data When saving a user in the AngularJS UIs, we currently send the notes, usr_activity, and standing_penalties fields to the actor service. However, that's not how those get updated, and with large sets that can cause problems. This commit removes those fields before saving the user. Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js | 5 +++++ 1 file changed, 5 insertions(+) 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 31bc4fe2af..bebbded5af 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 @@ -1207,6 +1207,11 @@ angular.module('egCoreMod') if (!patron.isnew()) patron.ischanged(true); + // Make sure these are empty, we don't update them this way + patron.notes([]); + patron.usr_activity([]); + patron.standing_penalties([]); + return egCore.net.request( 'open-ils.actor', 'open-ils.actor.patron.update', -- 2.11.0