| 
      
            Lines 582-588
          if ($op eq "additem") {
      
      
        Link Here
      
     | 
  
        
          | 582 | 
                                  { skip_record_index => 1 } ); | 
          582 | 
                                  { skip_record_index => 1 } ); | 
        
        
          | 583 | 
                              $current_item->discard_changes; # Cannot chain discard_changes  | 
          583 | 
                              $current_item->discard_changes; # Cannot chain discard_changes  | 
        
        
          | 584 | 
                              $current_item = $current_item->unblessed;  | 
          584 | 
                              $current_item = $current_item->unblessed;  | 
        
            
              | 585 | 
                                  set_item_default_location($current_item->{itemnumber}); | 
               | 
               | 
            
        
          | 586 | 
           | 
          585 | 
           | 
        
        
          | 587 | 
          # We count the item only if it was really added  | 
          586 | 
          # We count the item only if it was really added  | 
        
        
          | 588 | 
          # That way, all items are added, even if there was some already existing barcodes  | 
          587 | 
          # That way, all items are added, even if there was some already existing barcodes  | 
        
            
              | 589 | 
              -   | 
               | 
               |