]> git.koha-community.org Git - koha.git/commit
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)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 14 Jun 2012 00:56:42 +0000 (12:56 +1200)
commit19c7e9905a47aede71bacb2d1762d5ef309eb635
treebba862dc9b9c385b7b3db551badd34088f797832
parent4e101711295212c564a720a3415eb35b73cc0f36
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>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
circ/circulation.pl