Bug 13544: Make it explicit that getauthtypes returns a hash ref
Prior to perl 5.12 keys can only operate on a hash. Test plan: With perl 5.10, access to admin/auth_subfields_structure.pl. Without this patch, you get: Type of arg 1 to keys must be hash (not subroutine entry) at /home/koha/src/admin/auth_subfields_structure.pl line 102, near "getauthtypes)" Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Confirmed problem and tested patch on a sandbox, signed off locally. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
ac3f497f64
commit
c9af47b86c
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ if ($op eq 'add_form') {
|
|||
push @$authorised_values, 'itemtypes';
|
||||
|
||||
# build thesaurus categories list
|
||||
my @authtypes = (sort keys getauthtypes);
|
||||
my @authtypes = (sort keys %{C4::Koha::getauthtypes()});
|
||||
|
||||
# build value_builder list
|
||||
my @value_builder=('');
|
||||
|
|
Loading…
Reference in a new issue