From c9124a794c91e58c08b3ecf909b24d7664ca8936 Mon Sep 17 00:00:00 2001 From: Andreas Roussos Date: Sun, 30 Sep 2018 13:06:28 +0300 Subject: [PATCH] Bug 21456: The 'New authority' button lists authority types inconsistently The 'New authority' button does not always list the available authority types in A-Z order based on their description. This patch fixes that. Test plan: 1) Go to Home > Authorities in the staff client; notice how the 'New authority' button lists auth types sorted by description. 2) Go to an authority's detail page; notice how the same 'New authority' button will list auth types sorted by their code. 3) Apply the patch. 4) In an authority's detail page, the 'New authority' button will now list the available authority types sorted by description. Signed-off-by: Michal Denar Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens (cherry picked from commit bf7c8303ca7f9e4955f25fc4d1f30d65d8c52dc9) Signed-off-by: Martin Renvoize (cherry picked from commit 1f8356d2df19a704a5a12597a9443eb459941aad) Signed-off-by: Fridolin Somers --- authorities/detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authorities/detail.pl b/authorities/detail.pl index 8dd4b77835..ce5c024043 100755 --- a/authorities/detail.pl +++ b/authorities/detail.pl @@ -183,7 +183,7 @@ my $authtypecode = $authobj ? $authobj->authtypecode : q{}; $tagslib = &GetTagsLabels(1,$authtypecode); # Build list of authtypes for showing them -my $authority_types = Koha::Authority::Types->search({}, { order_by => ['authtypecode']}); +my $authority_types = Koha::Authority::Types->search({}, { order_by => ['authtypetext']}); my $record=GetAuthority($authid); -- 2.39.5