From 752b830dda8716d5214dd6d91fc4132da34955eb Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 19 Jul 2021 15:17:59 -0300 Subject: [PATCH] Bug 25260: ILSDI is tied to old DB structure for holds Signed-off-by: Tomas Cohen Arazi --- C4/ILSDI/Services.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index 54ef783711..0fd80c97af 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -280,7 +280,15 @@ sub GetRecords { } # Holds - my $holds = $biblio->current_holds->unblessed; + my $view_query = q{ + SELECT * + FROM + reserves + WHERE + biblionumber = ? + }; + + my $holds = C4::Context->dbh->selectall_arrayref( $view_query, { 'Slice' => {} }, $biblio->biblionumber ); foreach my $hold (@$holds) { delete $hold->{'borrowernumber'}; } -- 2.32.0