Bug 8178 - circ/circulation.pl under plack duplicates checkout rows
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 1 Jun 2012 13:22:30 +0000 (15:22 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Sun, 10 Jun 2012 11:02:05 +0000 (13:02 +0200)
commit7c9e80536b5189d983d65b46fa4af83e7233bf12
treeec42ae929392cfb71dc4e2b83e7332b424750280
parent10861e12934db49708b1a61354bb0c01aae70dec
Bug 8178 - circ/circulation.pl under plack duplicates checkout rows

Bug 7851 introduced our scoping for vairables, unfortunatly it has
side-effect that checkout rows accumulate on page reloads instead
of being initialized to empty array (which this patch fixes)

This also fixes %renew_failed initialization on each request.

Test scenario:
1. start intranet under plack
2. open /cgi-bin/koha/circ/circulation.pl and reload page few time
   confirming that rows gets duplicated
3. apply patch and reload page to verify that it works

Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
circ/circulation.pl