From 392ffda777993fd97fff2681f2ec100bd5c015c5 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] [PASSED QA] 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 --- 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) { -- 1.9.1