EG3.5 default value for opac.hold_notify ignored

Bug #1879993 reported by tji@sitka.bclibraries.ca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.4
Fix Released
Medium
Unassigned

Bug Description

This is related 1774268.

EG 3.5

The default value in the user setting type opac.hold_notify is not reflected on patron registration page. It's always both phone and email.

Revision history for this message
Jeff Davis (jdavis-sitka) wrote :

Working branch user/jeffdavis/lp1879993-default-hold-notify-upstream uses the reg_default value for the opac.hold_notify user setting on the patron registration page:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/jeffdavis/lp1879993-default-hold-notify-upstream

The reg_default will also be used when editing an existing patron who has no opac.hold_notify user setting. In either case, you can use an empty string ("") as the setting value in order to keep all boxes unchecked. If there is no user setting and no default value, both phone and email will be checked, which is consistent with current behavior.

Test plan:

[1] In config.usr_setting_type, set the reg_default for opac.hold_notify to "email".
[2] Register a new patron. The default value is applied: under Hold Notices, phone is unchecked and email is checked.
[3] Edit an existing patron with no opac.hold_notify setting. The default value is applied: under Hold Notices, phone is unchecked and email is checked.
[4] Edit an existing user who *does* have an opac.hold_notify setting. The boxes will be checked in accordance with the setting.

tags: added: pullrequest
Michele Morgan (mmorgan)
Changed in evergreen:
assignee: nobody → Michele Morgan (mmorgan)
Revision history for this message
Michele Morgan (mmorgan) wrote :

This works for me. I tested cases where the user_setting_type had a registration default and where there was no registration default. For both cases, I tested adding a new patron, editing a patron with preferences, and editing a patron without preferences.

My signoff is at:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/mmorgan/lp1879993_signoff

Changed in evergreen:
assignee: Michele Morgan (mmorgan) → nobody
milestone: none → 3.6-beta
tags: added: signedoff
Galen Charlton (gmc)
Changed in evergreen:
milestone: 3.6-beta → 3.5.2
no longer affects: evergreen/3.5
Changed in evergreen:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Galen Charlton (gmc)
Revision history for this message
Galen Charlton (gmc) wrote :

Pushed to master, rel_3_5, and rel_3_4. Thanks, Jeff and Michele!

Changed in evergreen:
status: Confirmed → Fix Committed
assignee: Galen Charlton (gmc) → nobody
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.