Bug 14014 - Argument "" isn't numeric in numeric gt (>) in circulation.tt
authorMarc Véron <veron@veron.ch>
Sun, 19 Apr 2015 19:04:21 +0000 (21:04 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 20 Apr 2015 13:03:16 +0000 (10:03 -0300)
To test:

Do some checkouts
In intranet-error.log you get lines similar to:
circulation.pl: Argument "" isn't numeric in numeric gt (>) at /usr/share/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt line 217.

Apply patch
The warning  should no longer appear.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
To reproduce the confirmation message must be displayed.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt

index 233114d..7d323ec 100644 (file)
@@ -211,8 +211,7 @@ $(document).ready(function() {
 [% IF ( DEBT ) %]
     <li>The patron has a debt of [% DEBT %].</li>
 [% END %]
-
-[% IF ( RENTALCHARGE > 0 ) %]
+[% IF ( RENTALCHARGE && RENTALCHARGE > 0 ) %]
     <li>Rental charge for this item: [% RENTALCHARGE %]</li>
 [% END %]