Skip to content

Commit

Permalink
Bug 14634: Warns when placing hold on record with no items
Browse files Browse the repository at this point in the history
To test:

1) Create a new record in Cataloguing
2) When done, instead of adding an item to the record, click on the Holds tab in the left nav
3) Notice warns
4) Apply patch and refresh page
5) Click on Holds tab again
6) Notice warns are gone and page still works

Signed-off-by: Marcel de Rooy <[email protected]>
Warns disappear; note that the display of the error message is still ugly.

Signed-off-by: Jonathan Druart <[email protected]>
Signed-off-by: Tomas Cohen Arazi <[email protected]>
  • Loading branch information
aleishaa authored and tomascohen committed Aug 27, 2015
1 parent 63970ff commit 4bb8882
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reserve/request.pl
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ =head1 request.pl
my $dat = GetBiblioData($biblionumber);

my $canReserve = CanBookBeReserved( $borrowerinfo->{borrowernumber}, $biblionumber );
$canReserve //= '';
if ( $canReserve eq 'OK' ) {

#All is OK and we can continue
Expand Down

0 comments on commit 4bb8882

Please sign in to comment.