From: Terran McCanna Date: Mon, 25 Aug 2014 17:45:16 +0000 (-0400) Subject: Fix for problem where opac.hold_notify is null or blank X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=80f0262e826eb3ac9c80206d23bec2683138cb84;p=evergreen%2Fpines.git Fix for problem where opac.hold_notify is null or blank and no notification options are triggered. Signed-off-by: Terran McCanna --- diff --git a/Open-ILS/src/templates/kpac/getit.tt2 b/Open-ILS/src/templates/kpac/getit.tt2 index caf74170a1..478de66a95 100644 --- a/Open-ILS/src/templates/kpac/getit.tt2 +++ b/Open-ILS/src/templates/kpac/getit.tt2 @@ -77,6 +77,13 @@ + [%- IF ctx.notify_method -%] + [%- IF ctx.notify_method == '' OR ctx.notify_method == 'phone:email' -%] + [%- SET ctx.notify_method = 'email|phone' -%] + [%- END -%] + [%- ELSE -%] + [%- SET ctx.notify_method = 'email|phone' -%] + [%- END -%] [%- IF ctx.user.email -%] [%- IF ctx.notify_method == 'email' OR ctx.notify_method == 'email|phone' -%]