From: Mike Rylander <mrylander@gmail.com>
Date: Fri, 27 May 2022 20:48:41 +0000 (-0400)
Subject: LP#1976126: Don't send useless (big) user data
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c1aca3b696a968f76ffb89627f2f4cbe1c11579f;p=evergreen%2Fmasslnc.git

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 <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
---

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',