]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP 1830065: Remove Spaces and Punctuation from SMS Notify user/dyrcona/lp1830065-clean-sms-notify
authorJason Stephenson <jason@sigio.com>
Wed, 22 May 2019 14:25:59 +0000 (10:25 -0400)
committerJason Stephenson <jason@sigio.com>
Wed, 22 May 2019 14:32:59 +0000 (10:32 -0400)
commit48622520498ca02d390f1428a070796041fefd5d
tree08ca1be3b5eb211ca85c1b2041830e77cc0274f6
parentbe5799711497dc3ddb5faf032254734bc0dcf1c2
LP 1830065: Remove Spaces and Punctuation from SMS Notify

We add a line of code to EGCatLoader::Account to strip spaces and
punctuation from the user-entered SMS notify field.  This way, the
user doesn't have to worry so much about the input and they will get
their SMS notifications, even if they enter the number with spaces and
punctuation.

We do not remove the SMS notificaiton hint as that is still somewhat
useful information and sites may have customized this template.

To test this, find something to put on hold and check the box for SMS
notificaiton, enter a number in the field with spaces, dashes, or any
other punctuation, and then look your hold up in the database.  Prior
to applying this commit, the action.hold_request.sms_notify field will
contain the spaces and punctuation.  After applying this commit and
repeating the above steps, your next hold will not have punctuation or
spaces in action.hold_request.sms_notify.

No provision is made for cleaning up existing holds.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
docs/RELEASE_NOTES_NEXT/OPAC/sms_notify_cleanup.adoc [new file with mode: 0644]