On 2008/06/17, at 1:38 AM, Joe Atzberger wrote:

On Fri, Jun 13, 2008 at 9:10 AM, Mason James <[EMAIL PROTECTED]> wrote: FYI: theres some other warnings from memberentrygen.tmpl , that i cant quite fix :(

this block of the template.

           <!-- TMPL_LOOP NAME="flagloop" -->
<li><label class="radio" for="yes<!-- TMPL_VAR name="name" --> <!-- TMPL_IF EXPR="key eq 'gonenoaddress'" -->Gone no Address: <!-- TMPL_IF EXPR="key eq 'debarred'" -- >Debarred:<!-- /TMPL_I <!-- TMPL_IF EXPR="key eq 'lost'" -->Lost Card:<!-- /TMPL_IF -
                </label>


This is the reason not to use EXPR. Even though the syntax is perlish, it operates with a logic serarate from the flow of HTML::Template::Pro and perl. These EXPR's are evaluated outside the context of the LOOP, where "key" doesn't exist, as sort of a pre-pass before the rest of the template processing.


Hey Joe,

I just spotted your reply. Thanks for pointing this out to me. 
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to