https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20125 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA CC| |jonathan.druart@gmail.com --- Comment #26 from Jonathan Druart <jonathan.druart@gmail.com> --- 1. We should avoid such raw SQL queries. Cannot you do something like - loop on orders - use ->claims->filter_by_late (or use ->claimed_date) And use Koha::Objects everywhere? 2. We need to tests (and so move the code to methods) 3. We need try-catch and better error handling. -- You are receiving this mail because: You are watching all bug changes.