]> git.koha-community.org Git - koha.git/commit
Bug 16151: Restore the ability to place holds from lists at the OPAC
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 29 Mar 2016 07:14:33 +0000 (08:14 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 1 Apr 2016 12:56:34 +0000 (14:56 +0200)
commit99d07437e1b145a2f11040541becb6bcae1541ac
treeb5f5154edeaac164cb043645843c269a3477da16
parent2159e7d880e67ae8d29037485623fbdf973112a4
Bug 16151: Restore the ability to place holds from lists at the OPAC

This patch fixes a bug introduced by bug 14544.
Holds can not be placed from lists at the OPAC, the action results in a
crash:
Can't call method "field" on an undefined value at
/home/koha/src/C4/Items.pm line 1504.
 at /home/koha/src/opac/opac-reserve.pl line 601

Before 14544, the checkboxes were named 'ACT-$BIBNUM', something like
REM-4242. Now we can retrieve the biblionumber from the value.

Test plan:
Select a public list
check some titles and click on the 'Place hold' link
you should able to process the reservation

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 1ae64b97b39f5554e2d2360de9582a3e445854c5)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt