---
 members/memberentry.pl |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/members/memberentry.pl b/members/memberentry.pl
index 26c05bb..0466a8b 100755
--- a/members/memberentry.pl
+++ b/members/memberentry.pl
@@ -171,11 +171,11 @@ if (defined($guarantorid) and ($category_type eq 'C' || 
$category_type eq 'P') a
   my $guarantordata=GetMember($guarantorid);
   $guarantorinfo=$guarantordata->{'surname'}." , 
".$guarantordata->{'firstname'};
   if (!defined($data{'contactname'}) or $data{'contactname'} eq '' or 
$data{'contactname'} ne $guarantordata->{'surname'}) {
-    $data{'contactfirstname'}= $guarantordata->{'firstname'};
-    $data{'contactname'}     = $guarantordata->{'surname'};
-    $data{'contacttitle'}    = $guarantordata->{'title'};
+    $newdata{'contactfirstname'}= $guarantordata->{'firstname'};
+    $newdata{'contactname'}     = $guarantordata->{'surname'};
+    $newdata{'contacttitle'}    = $guarantordata->{'title'};
          foreach (qw(streetnumber address streettype address2 zipcode city 
phone phonepro mobile fax email emailpro branchcode)) {
-               $data{$_} = $guarantordata->{$_};
+               $newdata{$_} = $guarantordata->{$_};
        }
   }
 }
-- 
1.5.6.5

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to