koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Koha-devel] Returns messages


From: Chris Cormack
Subject: Re: [Koha-devel] Returns messages
Date: Mon Aug 4 14:50:01 2003
User-agent: Mutt/1.3.28i

On Mon, Aug 04, 2003 at 04:18:06PM -0400, Owen Leonard said:
> In the template for returns.pl, there's a loop to display error messages:
> 
>    <TMPL_LOOP Name="errmsgloop">
>     <font color='red' size='+2'>
>       <TMPL_IF Name="badbarcode">
>       No Item with barcode: <TMPL_VAR Name="msg">
>       </TMPL_IF>
> 
> ...etc.  But there doesn't seem to be a way to hide it when the 'errmsgloop' 
> loop is empty.  Adding this:
> 
> <TMPL_IF NAME="errmsgloop"></TMPL_IF>
> 
> around the loop doesn't hide it like I thought it would.  Is there a way to 
> achieve this?
> 
Hi Owen

Ive fixed this, the errmsgloop array was being set with at least one item
every time, even if that item was empty.
So ive changed that and now the <TMPL_IF works

Chris

-- 
Chris Cormack                                                     Programmer
027 4500 789                                       Katipo Communications Ltd
address@hidden                                          www.katipo.co.nz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]