https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40055

David Nind <da...@davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #182915|0                           |1
        is obsolete|                            |

--- Comment #2 from David Nind <da...@davidnind.com> ---
Created attachment 182953
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182953&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>

-- 
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/

Reply via email to