From f3fdb71974b5dd628819c09b2681e55409d9d5b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?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 renow items that are or are not checked out. Error no longer occurs. Signed-off-by: Jonathan Druart --- circ/renew.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/renew.pl b/circ/renew.pl index 28301dc..a87ba76 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.1.0