Bug 23382: Fix logic in C4::Circulation::CanBookBeIssued
commitf8e2c489cb668aab9e7484c2dd67c1c05f37b2a5
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 16 Aug 2019 07:32:55 +0000 (16 08:32 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Sat, 26 Oct 2019 06:53:50 +0000 (26 07:53 +0100)
treec91bed2c7acdf4d6aaeb9b0b77bf019dce4f07f7
parent9063d05662ead802ebb8bbb53730834e6ea5e458
Bug 23382: Fix logic in C4::Circulation::CanBookBeIssued

It looks like over progressive rebases of bug 20912 a clause was lost
within CanBookBeIssued such that a fatal error may be triggered if an
item with no corresponding itemtype was passed into the routine.

Additionally the we were passing a Koha::Library object to CalcDateDue
rather than a branchcode which resulted in a different duedate being
used in 'CanBookBeIssued' when compared to 'AddIssue'.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Circulation.pm