Bug 38109: Sort patron category types before display
To test
1 - Patrons -> New patron -> {any category}
2 - Find the category dropdown
3 - Note the order of categories types
4 - Reload the page
5 - Note a new order
6 - Apply patch
7 - Refresh page, category types now ordered (by code)
8 - Refresh again, no change!
Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 3b438c2b89)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
41fad6a308
commit
d3db300f3d
|
|
@ -991,7 +991,7 @@ legend.collapsed i.fa.fa-caret-down::before {
|
|||
<li>
|
||||
<label for="categorycode_entry" class="required">Category: </label>
|
||||
<select id="categorycode_entry" name="categorycode">
|
||||
[% FOREACH category_type IN patron_categories.keys %]
|
||||
[% FOREACH category_type IN patron_categories.keys.sort %]
|
||||
[% SWITCH category_type %]
|
||||
[% CASE 'C' %]
|
||||
<optgroup label="Child">
|
||||
|
|
|
|||
Loading…
Reference in New Issue