From 68dee0de8e244e1badf51e7603ecd7341826c23c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Tue, 5 Jan 2016 09:14:30 +0100 Subject: [PATCH] Bug 15462 - Unable to renew books via circ/renew.pl To verify: Got to circ/circulation.pl and try to renew an item. Result: Can't call method "single" without a package or object reference at /usr/share/kohaclone/circ/renew.pl line 57 To test: - Apply patch - Try to renew items that are or are not checked out. Error no longer occurs. Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer Signed-off-by: Brendan A Gallagher --- circ/renew.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/renew.pl b/circ/renew.pl index 28301dcb88..a87ba76740 100755 --- a/circ/renew.pl +++ b/circ/renew.pl @@ -54,7 +54,7 @@ if ($barcode) { if ($item) { - $issue = $item->issues()->single(); + $issue = $item->issue(); if ($issue) { -- 2.39.5