From: Henri-Damien LAURENT Date: Wed, 17 Oct 2007 20:20:35 +0000 (-0500) Subject: Bug Fix : 1484 X-Git-Tag: v3.00.00-alpha~1423 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=20a90e516c0b5c0a3571c4cceacd89675b7eac5b;p=koha_ffzg Bug Fix : 1484 guarantor is now automatically filled in when coming from add Child. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- diff --git a/members/memberentry.pl b/members/memberentry.pl index 3332a58ea5..3d0a58a764 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -127,10 +127,10 @@ if (($category_type eq 'C' || $category_type eq 'P') and $guarantorid ne '' ){ my $guarantordata=GetMember($guarantorid); $guarantorinfo=$guarantordata->{'surname'}." , ".$guarantordata->{'firstname'}; if (($data{'contactname'} eq '' or $data{'contactname'} ne $guarantordata->{'surname'})) { - $newdata{'contactfirstname'}=$guarantordata->{'firstname'}; - $newdata{'contactname'}=$guarantordata->{'surname'}; - $newdata{'contacttitle'}=$guarantordata->{'title'}; - map {$newdata{$_}=$guarantordata->{$_}}('streetnumber','address','streettype','address2','zipcode','city','phone','phonepro','mobile','fax','email','emailpro'); + $data{'contactfirstname'}=$guarantordata->{'firstname'}; + $data{'contactname'}=$guarantordata->{'surname'}; + $data{'contacttitle'}=$guarantordata->{'title'}; + map {$data{$_}=$guarantordata->{$_}}('streetnumber','address','streettype','address2','zipcode','city','phone','phonepro','mobile','fax','email','emailpro'); } }