| 
      
            Lines 258-263
          sub AddReserve {
      
      
        Link Here
      
     | 
  
        
          | 258 | 
              )->store();  | 
          258 | 
              )->store();  | 
        
        
          | 259 | 
              $hold->set_waiting() if $found && $found eq 'W';  | 
          259 | 
              $hold->set_waiting() if $found && $found eq 'W';  | 
        
        
          | 260 | 
           | 
          260 | 
           | 
        
            
               | 
               | 
              261 | 
                  # record patron activity  | 
            
            
              | 262 | 
                  $hold->patron->update_lastseen('hold'); | 
            
            
              | 263 | 
               | 
            
        
          | 261 | 
              logaction( 'HOLDS', 'CREATE', $hold->id, $hold )  | 
          264 | 
              logaction( 'HOLDS', 'CREATE', $hold->id, $hold )  | 
        
        
          | 262 | 
                  if C4::Context->preference('HoldsLog'); | 
          265 | 
                  if C4::Context->preference('HoldsLog'); | 
        
        
          | 263 | 
           | 
          266 | 
           | 
        
  
    | 
      
            Lines 273-279
          sub AddReserve {
      
      
        Link Here
      
     | 
  
        
          | 273 | 
           | 
          276 | 
           | 
        
        
          | 274 | 
              # Send e-mail to librarian if syspref is active  | 
          277 | 
              # Send e-mail to librarian if syspref is active  | 
        
        
          | 275 | 
              if(C4::Context->preference("emailLibrarianWhenHoldIsPlaced")){ | 
          278 | 
              if(C4::Context->preference("emailLibrarianWhenHoldIsPlaced")){ | 
        
          
            
              | 276 | 
                      my $patron = Koha::Patrons->find( $borrowernumber );  | 
              279 | 
                      my $patron = $hold->patron;  | 
            
        
          | 277 | 
                  my $library = $patron->library;  | 
          280 | 
                  my $library = $patron->library;  | 
        
        
          | 278 | 
                  if ( my $letter =  C4::Letters::GetPreparedLetter (  | 
          281 | 
                  if ( my $letter =  C4::Letters::GetPreparedLetter (  | 
        
        
          | 279 | 
                      module => 'reserves',  | 
          282 | 
                      module => 'reserves',  |