Bugzilla – Attachment 77435 Details for
Bug 18635
Koha::Patron->guarantees() should return results alphabetically
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18635: Koha::Patron->guarantees() should return results alphabetically
Bug-18635-KohaPatron-guarantees-should-return-resu.patch (text/plain), 1.19 KB, created by
Katrin Fischer
on 2018-08-02 12:36:40 UTC
(
hide
)
Description:
Bug 18635: Koha::Patron->guarantees() should return results alphabetically
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-08-02 12:36:40 UTC
Size:
1.19 KB
patch
obsolete
>From c7ccc21ba5b9c9a6b5f9712d04f4b99d184a6bde Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 18 May 2017 21:08:22 -0400 >Subject: [PATCH] Bug 18635: Koha::Patron->guarantees() should return results > alphabetically >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To test: >1 - Add the same guarantor to a number of patrons, ensuring random order >alphabetically >2 - View the guarantors record, note unordered list of guarantees >3 - Apply patch >4 - Guarantees are alphabetical > >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > Koha/Patron.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 9e8b3cf..660a447 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -441,7 +441,7 @@ Returns the guarantees (list of Koha::Patron) of this patron > sub guarantees { > my ( $self ) = @_; > >- return Koha::Patrons->search( { guarantorid => $self->borrowernumber } ); >+ return Koha::Patrons->search( { guarantorid => $self->borrowernumber }, { order_by => { -asc => ['surname','firstname'] } } ); > } > > =head3 housebound_profile >-- >2.1.4
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 18635
:
63552
|
63553
|
63558
|
63559
|
63617
|
66557
|
66558
|
77005
|
77006
|
77011
|
77012
|
77013
| 77435 |
77436