Created attachment 135534 [details] [review] Bug 30876: Fix wrong call to ->search in list context The code is clearly incorrect as ->search no longer returns a list when called in list context. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
The error is: The method Koha::Items->can_be_waiting_recall is not covered by tests!
After patch: DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Unknown column 'biblio_id' in 'where clause' at /kohadevbox/koha/Koha/Objects.pm line 394
Created attachment 135535 [details] [review] Bug 30876: Fix wrong call to ->search in list context The code is clearly incorrect as ->search no longer returns a list when called in list context. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Created attachment 135536 [details] [review] Bug 30876: Use Koha::Biblio Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Created attachment 135546 [details] [review] Bug 30876: Use Koha::Biblio Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Created attachment 135547 [details] [review] Bug 30876: (follow-up) Use the $biblio object even further Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Code looks good, patch works, tests happy, passing QA
Pushed to master for 22.11. Nice work everyone, thanks!
Pushed to 22.05.x for 22.05.01
depends on recalls, enhancement not available in 21.11, won't backport