From eaa62ab2cde8d52696559353e1506f5320fd7ec1 Mon Sep 17 00:00:00 2001 From: Mason James Date: Thu, 29 Jan 2009 01:28:52 +1300 Subject: [PATCH] bug 2870, fixes non-populating of guarantor fields Signed-off-by: Galen Charlton --- members/memberentry.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index 26c05bb649..0466a8b0e7 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->{$_}; } } } -- 2.39.5