Fix for bug 1772, thanks for the bug report Arona
authorChris Cormack <crc@liblime.com>
Wed, 23 Jan 2008 01:40:20 +0000 (19:40 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 24 Jan 2008 03:31:05 +0000 (21:31 -0600)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
members/readingrec.pl

index 0e044ee..3eac89c 100755 (executable)
@@ -42,7 +42,7 @@ my $limit=$input->param('limit');
 
 if ($limit){
     if ($limit eq 'full'){
-       $limit=0;
+               $limit=0;
     }
 } 
 else {
@@ -79,7 +79,9 @@ for (my $i=0;$i<$count;$i++){
        my $borrowercategory = GetBorrowercategory( $data->{'categorycode'} );
        my $category_type = $borrowercategory->{'category_type'};
        ( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' );
-
+if (! $limit){ 
+       $limit = 'full'; 
+}
 $template->param(
                                                readingrecordview => 1,
                                                biblionumber => $data->{'biblionumber'},