Just a quick little fix the sql to update a borrower was setting the postal
authorrangi <rangi>
Tue, 9 Apr 2002 00:04:39 +0000 (00:04 +0000)
committerrangi <rangi>
Tue, 9 Apr 2002 00:04:39 +0000 (00:04 +0000)
address twice, instead of the postal, then the physical address. My little
fix got overwrote by pat's fix so im updating now before i forget :)

insertdata.pl

index d69fdc6..b88f3f9 100755 (executable)
@@ -40,7 +40,7 @@ if (my $data=$sth->fetchrow_hashref){
   altrelationship='$data{'altrelationship'}',othernames='$data{'othernames'}',phoneday='$data{'phoneday'}',
   categorycode='$data{'categorycode'}',city='$data{'city'}',area='$data{'area'}',phone='$data{'phone'}',
   borrowernotes='$data{'borrowernotes'}',altphone='$data{'altphone'}',surname='$data{'surname'}',
-  initials='$data{'initials'}',streetaddress='$data{'address'}',ethnicity='$data{'ethnicity'}',
+  initials='$data{'initials'}',physstreet='$data{'address'}',ethnicity='$data{'ethnicity'}',
   gonenoaddress='$data{'gna'}',lost='$data{'lost'}',debarred='$data{'debarred'}'
   where borrowernumber=$data{'borrowernumber'}";
 #  print $query;