[Koha-patches] [PATCH] bug_11184: correct attribute cloning for the maint screen

Srdjan srdjan at catalyst.net.nz
Fri Nov 1 09:27:40 CET 2013


To test - Patron details entry page:
* Have  ExtendedPatronAttributes enabled. Check that "Additional
  attributes and identifiers" section behaves.
---
 members/memberentry.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/members/memberentry.pl b/members/memberentry.pl
index 4b410a7..13ba805 100755
--- a/members/memberentry.pl
+++ b/members/memberentry.pl
@@ -798,7 +798,7 @@ sub patron_attributes_form {
         };
         if (exists $attr_hash{$attr_type->code()}) {
             foreach my $attr (@{ $attr_hash{$attr_type->code()} }) {
-                my $newentry = { map { $_ => $entry->{$_} } %$entry };
+                my $newentry = { %$entry };
                 $newentry->{value} = $attr->{value};
                 $newentry->{password} = $attr->{password};
                 $newentry->{use_dropdown} = 0;
-- 
1.8.1.2


More information about the Koha-patches mailing list