From 3516f113b7cc7cca7c292b5e9c6dc1abc5fc0e46 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 5 Sep 2018 13:52:41 +0100 Subject: [PATCH] Bug 21202: Replace C4::Items::GetItemsByBiblioitemnumber calls http://lists.koha-community.org/pipermail/koha-devel/2018-August/044757.html Prior to this patch, GetRecords returned timestampX, cardX and borrowerX for the last 3 patrons who checked out the items. I have no idea if it is a desired effects but, as this code has been there for a very long time (2005), I suspect it's not. The "doc" (/ilsdi.pl?service=Describe&verb=GetRecords) does not say anything about the checkouts info. Test plan: hit /ilsdi.pl?service=GetRecords&id=1 and confirm the info about items are displayed correctly Signed-off-by: Josef Moravec's avatarJosef Moravec Signed-off-by: 's avatarMarcel de Rooy Signed-off-by: Wm. Nick Clemens's avatarNick Clemens RMaint: Converted to deprecation warning Signed-off-by: Martin Renvoize --- C4/Items.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Items.pm b/C4/Items.pm index c4ca4489e2..748957a770 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -949,6 +949,7 @@ Called by C sub GetItemsByBiblioitemnumber { my ( $bibitem ) = @_; + warn "C4::Items::GetItemsByBiblioitemnumber will be deprecated as of 18.11. - See Bug 21202 for details\n"; my $dbh = C4::Context->dbh; my $sth = $dbh->prepare("SELECT * FROM items WHERE items.biblioitemnumber = ?") || die $dbh->errstr; # Get all items attached to a biblioitem -- 2.39.5