[Koha-patches] [PATCH 1/1] bug 9835: Lack of brackets in patron-attr-types.pl line 300
Christophe Croullebois
christophe.croullebois at biblibre.com
Mon Mar 18 15:07:20 CET 2013
produces a warning 'Can't call method "branches" on an undefined value'...
---
admin/patron-attr-types.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/admin/patron-attr-types.pl b/admin/patron-attr-types.pl
index 3935f40..76c98df 100755
--- a/admin/patron-attr-types.pl
+++ b/admin/patron-attr-types.pl
@@ -297,7 +297,7 @@ sub patron_attribute_type_list {
for my $attr (@attr_types) {
next if $attr->{class} ne $class;
my $attr_type = C4::Members::AttributeTypes->fetch($attr->{code});
- $attr->{branches} = $attr_type->branches;
+ $attr->{branches} = $attr_type->{branches};
push @items, $attr;
}
my $lib = GetAuthorisedValueByCode( 'PA_CLASS', $class ) || $class;
--
1.7.0.4
More information about the Koha-patches
mailing list