LP#1865533: save changes on Edit Hold in My Account user/jeffdavis/lp1865533-edit-hold-save-changes
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Tue, 28 Apr 2020 20:52:52 +0000 (13:52 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Tue, 28 Apr 2020 20:58:44 +0000 (13:58 -0700)
commit590e8c0d17310bbc23ec4b873a914d7774492d2e
tree9dcef160704fda9fac23fb919a8a547d8027aaf5
parentfe76f6218dd13fa1e962d6c885a4f8ef892ff160
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>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm