Account for case where no branch is explicitly supplied.
Signed-off-by: Galen Charlton <[email protected]>
---
opac/opac-reserve.pl | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl
index d5d39db..699179b 100755
--- a/opac/opac-reserve.pl
+++ b/opac/opac-reserve.pl
@@ -158,7 +158,8 @@ if ( $query->param('place_reserve') ) {
$selectedItems = "$bib/$item/$branch/";
}
- my @selectedItems = split /\//, $selectedItems;
+ $selectedItems =~ s!/$!!;
+ my @selectedItems = split /\//, $selectedItems, -1;
# Make sure there is a biblionum/itemnum/branch triplet for each item.
# The itemnum can be 'any', meaning next available.
--
1.7.0
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches