From: Pasi Kallinen Date: Mon, 27 May 2013 09:02:38 +0000 (+0300) Subject: LP1183414: OPAC patron opt-in settings table does not work correctly X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bb89719aca7cd0fd4ae7b66f36c0e7940578d53d;p=evergreen%2Fequinox.git LP1183414: OPAC patron opt-in settings table does not work correctly Fix the template logic error, trying to use a variable before it is defined. Signed-off-by: Pasi Kallinen Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 index 43eed643bb..c0c1fba906 100644 --- a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 +++ b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 @@ -78,16 +78,17 @@ [% END %] - - + +
+ [% IF ctx.opt_in_settings.size == 0 %] + [% l('No notification preferences are configured') %] + [% ELSE %] +
- [% IF optin.size == 0 %] - [% l('No notification preferences are configured') %] - [% END %] [% FOR optin IN ctx.opt_in_settings %] @@ -99,7 +100,9 @@ [% END %] -
[% l('Notification Type') %] [% l('Enabled') %]
[% optin.cust.label | html %]
+ + [% END %] + [% END %]