Bugzilla – Attachment 83399 Details for
Bug 22022
Authorised values on the batch item modification page are not displayed in order (order by code, not lib)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22022: Correct ordering for authorised values
Bug-22022-Correct-ordering-for-authorised-values.patch (text/plain), 1.41 KB, created by
Jonathan Druart
on 2018-12-19 18:12:24 UTC
(
hide
)
Description:
Bug 22022: Correct ordering for authorised values
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-12-19 18:12:24 UTC
Size:
1.41 KB
patch
obsolete
>From 79c2ca6adc76e2965b4c6e980733ab0231a2d33b Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 18 Dec 2018 18:30:28 +0000 >Subject: [PATCH] Bug 22022: Correct ordering for authorised values > >To test: >1 - Add a shelving location with code "ZZZZ" and lib "Awake" >2 - Load some items in batch modification >3 - Note shelving location dropdown is wrong >4 - Apply patch >5 - Reload page >6 - Note order is correct > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > tools/batchMod.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/tools/batchMod.pl b/tools/batchMod.pl >index 1380d61c2a..afb2d293b7 100755 >--- a/tools/batchMod.pl >+++ b/tools/batchMod.pl >@@ -388,7 +388,7 @@ foreach my $tag (sort keys %{$tagslib}) { > else { > push @authorised_values, ""; # unless ( $tagslib->{$tag}->{$subfield}->{mandatory} ); > >- my @avs = Koha::AuthorisedValues->search({ category => $tagslib->{$tag}->{$subfield}->{authorised_value}, branchcode => $branch_limit }); >+ my @avs = Koha::AuthorisedValues->search({ category => $tagslib->{$tag}->{$subfield}->{authorised_value}, branchcode => $branch_limit },{order_by=>'lib'}); > for my $av ( @avs ) { > push @authorised_values, $av->authorised_value; > $authorised_lib{$av->authorised_value} = $av->lib; >-- >2.11.0
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 22022
:
83371
|
83373
| 83399