Created attachment 20107 [details] [review] Bug 10681: Inappropriate uses of finish() in C4::Circulation.pm This patch gets rid of finish(). From the man page finish() Indicate that no more data will be fetched from this statement handle before it is either executed again or destroyed. You almost certainly do not need to call this method. Adding calls to "finish" after loop that fetches all rows is a common mistake, don't do it, it can mask genuine problems like uncaught fetch errors.
Created attachment 20157 [details] [review] Bug 10681: Inappropriate uses of finish() in C4::Circulation.pm This patch gets rid of finish(). From the man page finish() Indicate that no more data will be fetched from this statement handle before it is either executed again or destroyed. You almost certainly do not need to call this method. Adding calls to "finish" after loop that fetches all rows is a common mistake, don't do it, it can mask genuine problems like uncaught fetch errors. Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Created attachment 20637 [details] [review] [SIGNED OFF] Bug 10681: Inappropriate uses of finish() in C4::Circulation.pm This patch gets rid of finish(). From the man page finish() Indicate that no more data will be fetched from this statement handle before it is either executed again or destroyed. You almost certainly do not need to call this method. Adding calls to "finish" after loop that fetches all rows is a common mistake, don't do it, it can mask genuine problems like uncaught fetch errors. Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Passes all tests and QA script.
Pushed to master. Thanks, Kenza!