I have the following error that I don't understand :
attempt to set parameter 'todayissues' with an array ref - parameter is not a TMPL_LOOP! at /home/httpd/html/koha.dev/cgi-bin/koha/circ/circulation.pl line 291


2 things are strange :
* it works fine with DB A, it shows an error with DB B
* the @realtodayissues is EMPTY on both tests.

my @realtodayissues;
... (something not related to realtodayissues
$template->param(
       findborrower => $findborrower,
       borrower => $borrower,
       borrowernumber => $borrowernumber,
       branch => $branch,
       printer => $printer,
       branchname => $branches->{$branch}->{'branchname'},
       printername => $printers->{$printer}->{'printername'},
       todayissues => [EMAIL PROTECTED],
       previssues => [EMAIL PROTECTED],


&& the template :
<TMPL_IF name="todayissues">
<table border=1 cellpadding=5 cellspacing=0 width=80%>
<tr>
<th colspan=5 background="<TMPL_VAR name="themelang">/images/background-mem.gif">
<font color=black>
<b>Todays Issues</b></font>
</th>
</tr>
<tr>
<th>Due Date</th><th>Bar Code</th><th>Title</th><th>Author</th><th>Class</th>
</tr>
<TMPL_LOOP name="todayissues">
<tr><td bgcolor=<TMPL_VAR NAME="tcolor"> align=center><TMPL_VAR NAME="dd"></td>
<td bgcolor=<TMPL_VAR NAME="tcolor"> align=center>
<a href="/cgi-bin/koha/detail.pl?bib=<TMPL_VAR NAME="biblionumber">&type=intra" onClick="openWindow(this, 'Item', 480, 640)"><TMPL_VAR NAME="barcode"></a></td>
<td bgcolor=<TMPL_VAR NAME="tcolor">><TMPL_VAR NAME="title"></td>
<td bgcolor=<TMPL_VAR NAME="tcolor">><TMPL_VAR NAME="author"></td>
<td bgcolor=<TMPL_VAR NAME="tcolor"> align=center><TMPL_VAR NAME="dewey"> <TMPL_VAR NAME="subclass"></td></tr>
</TMPL_LOOP>
</table>
</TMPL_IF>


Any idea welcomed.

--
Paul POULAIN
Consultant ind�pendant en logiciels libres
responsable francophone de koha (SIGB libre http://www.koha-fr.org)




------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to