LP#1865533: save changes on Edit Hold in My Account
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Tue, 28 Apr 2020 20:52:52 +0000 (13:52 -0700)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 1 May 2020 19:10:16 +0000 (15:10 -0400)
commit69f9ec751b8c613d1acfecf1fb8e7d7eb6a1607f
tree834515463ea40757a7f1bf9280b0ea6d762a2906
parente0d7705b9b8cb79fb58e451b0dca19393371a5de
LP#1865533: save changes on Edit Hold in My Account

When editing a hold in the OPAC, changes are not saved if the SMS field
is blank.  The sms_notify value is being passed as an empty string, and
this non-null value violates the "sms_check" constraint on
action.hold_request.  Replacing the empty string with undef allows the
hold update to succeed.

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm