| Lines 471-476
          sub ModSuggestion {
      
      
        Link Here | 
        
          | 471 |     return unless( $suggestion and defined($suggestion->{suggestionid}) ); | 471 |     return unless( $suggestion and defined($suggestion->{suggestionid}) ); | 
        
          | 472 |  | 472 |  | 
        
          | 473 |     my $suggestion_object = Koha::Suggestions->find( $suggestion->{suggestionid} ); | 473 |     my $suggestion_object = Koha::Suggestions->find( $suggestion->{suggestionid} ); | 
            
              |  |  | 474 |     $suggestion->{branchcode} = undef if ( exists( $suggestion->{branchcode} ) && $suggestion->{branchcode} eq "" ); | 
        
          | 474 |     eval { # FIXME Must raise an exception instead | 475 |     eval { # FIXME Must raise an exception instead | 
        
          | 475 |         $suggestion_object->set($suggestion)->store; | 476 |         $suggestion_object->set($suggestion)->store; | 
        
          | 476 |     }; | 477 |     }; | 
            
              | 477 | -  |  |  |