lp1902302 Opac. SMS and Carriers appear in Edit Holds Regardless of OU Setting. user/gcollum/lp1902302-Opac-SMS-Fields-Edit
authorGarry Collum <gcollum@gmail.com>
Fri, 30 Oct 2020 19:55:35 +0000 (15:55 -0400)
committerGarry Collum <gcollum@gmail.com>
Fri, 30 Oct 2020 19:55:35 +0000 (15:55 -0400)
commitac2639d39c6e428844ec59e220ded928eb6484ae
tree1564a151218fd43a48722acd53415439610bec1d
parentf07a7888b9d5368308218a32ca330eeaa1ae633c
lp1902302 Opac. SMS and Carriers appear in Edit Holds Regardless of OU Setting.

The SMS Number field and Default Carrier field display when editing an
individual hold in the opac, regardless of the 'Enable features that send SMS text messages' setting.
This patch rectifies that behavior.

To test.
Set the 'Enable features that send SMS text messages' to False.
Place a hold for a patron.
Login to the opac as that patron and view the holds.
Edit the hold, and notice that the SMS and Carrier fields are displayed.

Apply the patch.
Refresh the edit form.  The fields no longer display.

Set the 'Enable features that send SMS text messages' to True.
Refresh the edit form.  The fields now display.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Open-ILS/src/templates/opac/myopac/holds/edit.tt2