Bug 13401 - sort branches alphabetically in admin/authorised_values.pl
commitb6aae39c263eee482aaeb574c206fa0c2c69f120
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 5 Dec 2014 14:50:05 +0000 (5 15:50 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 9 Feb 2015 16:41:33 +0000 (9 13:41 -0300)
tree68f852ae36e20111f93e7c006d686353f1058886
parentbc355fef2455b7b22c29a061db72d07046169738
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>
admin/authorised_values.pl