From 6eaf525f6a407c051054ff53cc5b0b3783486c59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joonas=20Kylm=C3=A4l=C3=A4?= Date: Tue, 2 Nov 2021 20:24:01 +0000 Subject: [PATCH] Bug 29380: (follow-up) Fix renewal feature in staff interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The commit "Bug 29290: Rename relationships borrower => patron" (d46492ac23) renamed the relation for the borrowers table from 'borrower' to 'patron' but the usage in the renew.pl script was not updated. To test: 1) Try to renew a book in intranet through the renewal tab 2) Notice it gives error 3) Apply patch 4) Notice the error is now gone Signed-off-by: Joonas Kylmälä --- circ/renew.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/renew.pl b/circ/renew.pl index 4a0db8a114..97b6317067 100755 --- a/circ/renew.pl +++ b/circ/renew.pl @@ -63,7 +63,7 @@ if ($barcode) { if ($issue) { - $borrower = $issue->borrower(); + $borrower = $issue->patron(); if ( ( $borrower->debarred() || q{} ) lt dt_from_string()->ymd() ) { my $can_renew; -- 2.20.1