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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 21 Apr 2015 12:04:57 +0000 (14:04 +0200)
commit3ab9c7c93b9c211b89daa5b34d903cd05ff2e379
treeeff8d4a14d92abc4d51804c7ab6aae354e993492
parent99f75b94788325203e88751312fa6fc36aed0f4d
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: Mason James <mtj@kohaaloha.com>
(cherry picked from commit 771c294c7419818e47009e0af1335ba0410ad80a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
admin/authorised_values.pl