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