Bugzilla – Attachment 123849 Details for
Bug 10902
Highlight patrons from logged-in library in patron searches
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10902: Use prefetch and dbic rs
Bug-10902-Use-prefetch-and-dbic-rs.patch (text/plain), 1.20 KB, created by
Jonathan Druart
on 2021-08-16 08:51:34 UTC
(
hide
)
Description:
Bug 10902: Use prefetch and dbic rs
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-08-16 08:51:34 UTC
Size:
1.20 KB
patch
obsolete
>From b158ebc1c81ee7bce6eb5b8eca9c395372fff371 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 16 Aug 2021 10:49:48 +0200 >Subject: [PATCH] Bug 10902: Use prefetch and dbic rs > >--- > circ/ysearch.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/circ/ysearch.pl b/circ/ysearch.pl >index f008452d74f..dd04aaf9667 100755 >--- a/circ/ysearch.pl >+++ b/circ/ysearch.pl >@@ -75,12 +75,12 @@ my $borrowers_rs = Koha::Patrons->search_limited( > page => 1, > rows => 10, > order_by => [ 'surname', 'firstname' ], >+ prefetch => 'branchcode', > }, > ); > > my @borrowers; > while ( my $b = $borrowers_rs->next ) { >- my $library = Koha::Libraries->find( $b->branchcode ); > push @borrowers, > { borrowernumber => $b->borrowernumber, > surname => $b->surname // '', >@@ -93,7 +93,7 @@ while ( my $b = $borrowers_rs->next ) { > zipcode => $b->zipcode // '', > country => $b->country // '', > branchcode => $b->branchcode // '', >- branchname => $library->branchname // '', >+ branchname => $b->library->branchname // '', > }; > } > >-- >2.25.1
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 10902
:
119023
|
119037
|
119057
|
123578
|
123587
|
123588
|
123639
|
123680
|
123681
|
123682
|
123683
|
123684
| 123849