]> git.koha-community.org Git - koha.git/commit
Bug 14046: Make the CheckIfIssuedToPatron using the biblionumber
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 22 Apr 2015 14:05:41 +0000 (16:05 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 11 May 2015 21:36:23 +0000 (09:36 +1200)
commit49b5934235b03f44be2240d9c72be59b2e8efe95
treeb922aa5f9c5d4783fce742a8a0785a7d5fd4d0d6
parent5ecb1c50735ed7479c36dc1707056ec9db77afdd
Bug 14046: Make the CheckIfIssuedToPatron using the biblionumber

C4::Circ::CheckIfIssuedToPatron called
  $items = GetItemsByBiblioitemnumber($biblionumber);
But if biblionumber != biblioitemnumber, the items retrieved were not
the good ones!

Test plan:
Make your Auto increment values for biblio and biblioitems differs
Launch the tests:
    prove t/db_dependent/Circulation/CheckIfIssuedToPatron.t

Before this patch, they did not pass.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 40e4722a957102a52ece9cd4f21ab6fd902f3c18)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Circulation.pm