Bug 24412: (follow-up) prevent request.pl from failing
When no desk is defined request.pl returns an internal server error. Check a desk is defined before asking for reservation deskname. Plan test: 1. log in with a library with no desk 2. check in a reserved book so it'll be switch to “waiting reserve” 3. go to the book notice and click the Holds tab (request.pl page) 4. boum 5. apply patch, restart plack 6. refresh page 7. now loading properly Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
351eb6c26d
commit
3de906ac13
|
|
@ -658,7 +658,7 @@ foreach my $biblionumber (@biblionumbers) {
|
|||
$reserve{'itemnumber'} = $res->itemnumber();
|
||||
$reserve{'wbrname'} = $res->branch()->branchname();
|
||||
$reserve{'atdestination'} = $res->is_at_destination();
|
||||
$reserve{'desk_name'} = $res->desk()->desk_name();
|
||||
$reserve{'desk_name'} = ( $res->desk() ) ? $res->desk()->desk_name() : '' ;
|
||||
$reserve{'found'} = $res->is_found();
|
||||
$reserve{'inprocessing'} = $res->is_in_processing();
|
||||
$reserve{'intransit'} = $res->is_in_transit();
|
||||
|
|
|
|||
Loading…
Reference in New Issue