Bug 15462 - Unable to renew books via circ/renew.pl
authorMarc Véron <veron@veron.ch>
Tue, 5 Jan 2016 08:14:30 +0000 (09:14 +0100)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Thu, 7 Jan 2016 18:21:21 +0000 (18:21 +0000)
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 <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
circ/renew.pl

index 28301dc..a87ba76 100755 (executable)
@@ -54,7 +54,7 @@ if ($barcode) {
 
     if ($item) {
 
-        $issue = $item->issues()->single();
+        $issue = $item->issue();
 
         if ($issue) {