If a patron does not want either phone or email hold notifications,
their opac.hold_notify user setting will be an empty string. Let's
ensure that the hold notify checkboxes remain unchecked in the patron
editor when that is the case.
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Jason Boyer <JBoyer@eoli.info>
function extract_hold_notify() {
var p = $scope.patron;
var notify = $scope.user_settings['opac.hold_notify'];
+ if (notify === '') {
+ $scope.hold_notify_type.phone = false;
+ $scope.hold_notify_type.email = false;
+ return;
+ }
if (!notify) {
$scope.hold_notify_type.phone = true;
$scope.hold_notify_type.email = true;