View | Details | Raw Unified | Return to bug 22908
Collapse All | Expand All

(-)a/C4/Suggestions.pm (-5 / +3 lines)
Lines 542-552 sub ModSuggestion { Link Here
542
    }
542
    }
543
543
544
    my $rs = Koha::Database->new->schema->resultset('Suggestion')->find($suggestion->{suggestionid});
544
    my $rs = Koha::Database->new->schema->resultset('Suggestion')->find($suggestion->{suggestionid});
545
    my $status_update_table = 1;
545
    eval { # FIXME Must raise an exception instead
546
    eval {
547
        $rs->update($suggestion);
546
        $rs->update($suggestion);
548
    };
547
    };
549
    $status_update_table = 0 if( $@ );
548
    return 0 if $@;
550
549
551
    if ( $suggestion->{STATUS} ) {
550
    if ( $suggestion->{STATUS} ) {
552
551
Lines 582-588 sub ModSuggestion { Link Here
582
            ) or warn "can't enqueue letter $letter";
581
            ) or warn "can't enqueue letter $letter";
583
        }
582
        }
584
    }
583
    }
585
    return $status_update_table;
584
    return 1; # No useful if the exception is raised earlier
586
}
585
}
587
586
588
=head2 ConnectSuggestionAndBiblio
587
=head2 ConnectSuggestionAndBiblio
589
- 

Return to bug 22908