Bug Fix : 1484
authorHenri-Damien LAURENT <henridamien@koha-fr.org>
Wed, 17 Oct 2007 20:20:35 +0000 (15:20 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 18 Oct 2007 21:23:55 +0000 (16:23 -0500)
guarantor is now automatically filled in when coming from add Child.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
members/memberentry.pl

index 3332a58..3d0a58a 100755 (executable)
@@ -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');
   }
 }