Bug 10038: fix doubled 'default' entry when creating a new authority type
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 17 Jul 2013 13:02:43 +0000 (15:02 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 18 Oct 2013 04:43:28 +0000 (04:43 +0000)
commitb04118df82a20eeec71bfb99349ab28943011c42
tree969eb96789d392cedbc7ba4e5d6b6f97cfa20da5
parent66de7d0e17745ff93bcf3d10dc9f83cdb39290fc
Bug 10038: fix doubled 'default' entry when creating a new authority type

Test plan:
- Create a new authority type
- Click MARC structure
- Verify the pull down has only 1 entry for Default
- Go on the authority type home (admin/authtypes.pl)
- Click on the "MARC structure" link for the default type
- Verify the pull down has only 1 entry for Default

This patch adds a sort (on the authtypecode) for these 2 lists.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Works as described. No koha-qa errors.

When creating a new framework it would be better to have Default
on top, but one is way better than two :)

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Agreed, one is better than two :)
All tests and QA script pass.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
admin/auth_tag_structure.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt