https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40055
Jonathan Druart <jonathan.dru...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #182989|0 |1 is obsolete| | --- Comment #8 from Jonathan Druart <jonathan.dru...@gmail.com> --- Created attachment 182999 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182999&action=edit Bug 40055: Make MoveReserve be passed objects instead of ids The `MoveReserve` method is called once, in `AddIssue`. The latter has the related `Koha::Item` object already fetched from the DB, but it passed the `itemnumber` which is used by `MoveReserve` to fetch the item from the DB. This should not happen. To test: 1. Run: $ ktd --shell k$ prove t/db_dependent/Reserves* \ t/db_dependent/Koha/Hold* \ t/db_dependent/Hold* \ t/db_dependent/Circulation* => SUCCESS: Tests pass 2. Apply this patch 3. Repeat 1 => SUCCESS: Tests still pass! 4. Sign off :-D Signed-off-by: David Nind <da...@davidnind.com> Signed-off-by: Jonathan Druart <jonathan.dru...@bugs.koha-community.org> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/