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

(-)a/Koha/Patron/Message/Preference.pm (-3 / +2 lines)
Lines 394-403 sub _set_message_transport_types { Link Here
394
    $self->_validate_message_transport_types({ message_transport_types => $types });
394
    $self->_validate_message_transport_types({ message_transport_types => $types });
395
    foreach my $type (@$types) {
395
    foreach my $type (@$types) {
396
        unless (exists $self->{'_message_transport_types'}->{$type}) {
396
        unless (exists $self->{'_message_transport_types'}->{$type}) {
397
            my $transport = Koha::Patron::Message::Transports->find({
397
            my $transport = Koha::Patron::Message::Transports->search({
398
                message_attribute_id => $self->message_attribute_id,
398
                message_attribute_id => $self->message_attribute_id,
399
                message_transport_type => $type
399
                message_transport_type => $type
400
            });
400
            })->next;
401
            unless ($transport) {
401
            unless ($transport) {
402
                Koha::Exceptions::Patron::Message::Preference::NoTransportType->throw(
402
                Koha::Exceptions::Patron::Message::Preference::NoTransportType->throw(
403
                    error => 'No transport configured for '.$self->message_name.
403
                    error => 'No transport configured for '.$self->message_name.
404
- 

Return to bug 17499