]> git.koha-community.org Git - koha.git/commit
Bug 13401 - sort branches alphabetically in admin/authorised_values.pl
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 5 Dec 2014 14:50:05 +0000 (15:50 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 12 Feb 2015 22:12:57 +0000 (11:12 +1300)
commitfb2669673dab127e7ad1d191bc1f9d53bbb5ae7b
tree25347bf1392c133146751413e02e1576ee3c3025
parent1120246a818e16af04cf155984fec7c44b5ed47c
Bug 13401 - sort branches alphabetically in admin/authorised_values.pl

This patch adds a sort of branches alphabetically by name in authorised values administration, like in many other pages.

Also replaces var $branch (too ambigus) by $branchcode.

Test plan :
- Create 2 branches : code=AAA,name=Zbranch and code=ZZZ,name=Abranch
- Create a new authorized value : admin/authorised_values.pl
- Look at "Libraries limitation" :
=> Without patch branches are sorted by code : Zbranch then Abranch
=> Without patch branches are sorted by name : Abranch then Zbranch
- Select a branch and save
- Re-edit
=> Check the same branch is selected

Followed test plan. Patch behaves as expected.
Signed-off-by: Marc Veron <veron@veron.ch>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit b6aae39c263eee482aaeb574c206fa0c2c69f120)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
admin/authorised_values.pl