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

(-)a/Koha/Patron.pm (-3 / +1 lines)
Lines 2501-2508 Return a Koha::Subscriptions object containing subscriptions for which the patro Link Here
2501
sub alert_subscriptions {
2501
sub alert_subscriptions {
2502
    my ( $self ) = @_;
2502
    my ( $self ) = @_;
2503
2503
2504
    my $schema = Koha::Database->new->schema;
2504
    my @alerts = $self->_result->alerts;
2505
    my @alerts = $schema->resultset('Alert')->search({ borrowernumber => $self->borrowernumber });
2506
    my @subscription_ids = map { $_->externalid } @alerts;
2505
    my @subscription_ids = map { $_->externalid } @alerts;
2507
2506
2508
    return Koha::Subscriptions->search({ subscriptionid => \@subscription_ids });
2507
    return Koha::Subscriptions->search({ subscriptionid => \@subscription_ids });
2509
- 

Return to bug 28130