Bugzilla – Attachment 153781 Details for
Bug 28130
Show list of serial email alerts a patron subscribed to in patron account in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28130: (QA follow-up) Use schema result to fetch alerts to allow for prefetch
Bug-28130-QA-follow-up-Use-schema-result-to-fetch-.patch (text/plain), 1015 bytes, created by
Nick Clemens (kidclamp)
on 2023-07-21 13:07:22 UTC
(
hide
)
Description:
Bug 28130: (QA follow-up) Use schema result to fetch alerts to allow for prefetch
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-07-21 13:07:22 UTC
Size:
1015 bytes
patch
obsolete
>From c604e2d02a6ed4289fdaadce8fa118e670aa5856 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 21 Jul 2023 12:56:51 +0000 >Subject: [PATCH] Bug 28130: (QA follow-up) Use schema result to fetch alerts > to allow for prefetch > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > Koha/Patron.pm | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index e2eab4643a8..4e1bda23d41 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -2501,8 +2501,7 @@ Return a Koha::Subscriptions object containing subscriptions for which the patro > sub alert_subscriptions { > my ( $self ) = @_; > >- my $schema = Koha::Database->new->schema; >- my @alerts = $schema->resultset('Alert')->search({ borrowernumber => $self->borrowernumber }); >+ my @alerts = $self->_result->alerts; > my @subscription_ids = map { $_->externalid } @alerts; > > return Koha::Subscriptions->search({ subscriptionid => \@subscription_ids }); >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28130
:
151550
|
151619
|
151656
|
151657
|
151658
|
151659
|
151814
|
151815
|
153779
|
153780
| 153781 |
153782