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