Fix for problem where opac.hold_notify is null or blank
authorTerran McCanna <tmccanna@georgialibraries.org>
Mon, 25 Aug 2014 17:45:16 +0000 (13:45 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 27 Aug 2014 13:01:31 +0000 (09:01 -0400)
and no notification options are triggered.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/kpac/getit.tt2

index caf7417..478de66 100644 (file)
 
 
                                  <!-- HIDDEN FIELDS FOR DEFAULT NOTIFICATION PREFERENCES -->
+                                 [%- 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' -%]