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

(-)a/Koha/Patron/Message/Preference.pm (-3 / +2 lines)
Lines 403-412 sub _set_message_transport_types { Link Here
403
    $self->_validate_message_transport_types({ message_transport_types => $types });
403
    $self->_validate_message_transport_types({ message_transport_types => $types });
404
    foreach my $type (@$types) {
404
    foreach my $type (@$types) {
405
        unless (exists $self->{'_message_transport_types'}->{$type}) {
405
        unless (exists $self->{'_message_transport_types'}->{$type}) {
406
            my $transport = Koha::Patron::Message::Transports->find({
406
            my $transport = Koha::Patron::Message::Transports->search({
407
                message_attribute_id => $self->message_attribute_id,
407
                message_attribute_id => $self->message_attribute_id,
408
                message_transport_type => $type
408
                message_transport_type => $type
409
            });
409
            })->next;
410
            unless ($transport) {
410
            unless ($transport) {
411
                Koha::Exceptions::Patron::Message::Preference::NoTransportType->throw(
411
                Koha::Exceptions::Patron::Message::Preference::NoTransportType->throw(
412
                    error => 'No transport configured for '.$self->message_name.
412
                    error => 'No transport configured for '.$self->message_name.
413
- 

Return to bug 17499