Skip to content

Commit

Permalink
Fixed bug #218
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpac444 committed Mar 25, 2003
1 parent 606cba8 commit 7460065
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions insertdata.pl
Expand Up @@ -58,7 +58,7 @@
altrelationship='$data{'altrelationship'}',othernames='$data{'othernames'}',phoneday='$data{'phoneday'}', altrelationship='$data{'altrelationship'}',othernames='$data{'othernames'}',phoneday='$data{'phoneday'}',
categorycode='$data{'categorycode'}',city='$data{'city'}',area='$data{'area'}',phone='$data{'phone'}', categorycode='$data{'categorycode'}',city='$data{'city'}',area='$data{'area'}',phone='$data{'phone'}',
borrowernotes='$data{'borrowernotes'}',altphone='$data{'altphone'}',surname='$data{'surname'}', borrowernotes='$data{'borrowernotes'}',altphone='$data{'altphone'}',surname='$data{'surname'}',
initials='$data{'initials'}',physstreet='$data{'address'}',ethnicity='$data{'ethnicity'}', initials='$data{'initials'}',physstreet='$data{'streetaddress'}',ethnicity='$data{'ethnicity'}',
gonenoaddress='$data{'gna'}',lost='$data{'lost'}',debarred='$data{'debarred'}',textmessaging='$data{'textmessaging'}' gonenoaddress='$data{'gna'}',lost='$data{'lost'}',debarred='$data{'debarred'}',textmessaging='$data{'textmessaging'}'
where borrowernumber=$data{'borrowernumber'}"; where borrowernumber=$data{'borrowernumber'}";
# print $query; # print $query;
Expand All @@ -71,13 +71,13 @@
$query="insert into borrowers (title,expiry,cardnumber,sex,ethnotes,streetaddress,faxnumber, $query="insert into borrowers (title,expiry,cardnumber,sex,ethnotes,streetaddress,faxnumber,
firstname,altnotes,dateofbirth,contactname,emailaddress,textmessaging,dateenrolled,streetcity, firstname,altnotes,dateofbirth,contactname,emailaddress,textmessaging,dateenrolled,streetcity,
altrelationship,othernames,phoneday,categorycode,city,area,phone,borrowernotes,altphone,surname, altrelationship,othernames,phoneday,categorycode,city,area,phone,borrowernotes,altphone,surname,
initials,ethnicity,borrowernumber) values ('$data{'title'}','$data{'expiry'}','$data{'cardnumber'}', initials,ethnicity,borrowernumber,physstreet) values ('$data{'title'}','$data{'expiry'}','$data{'cardnumber'}',
'$data{'sex'}','$data{'ethnotes'}','$data{'address'}','$data{'faxnumber'}', '$data{'sex'}','$data{'ethnotes'}','$data{'address'}','$data{'faxnumber'}',
'$data{'firstname'}','$data{'altnotes'}','$data{'dateofbirth'}','$data{'contactname'}','$data{'emailaddress'}','$data{'textmessaging'}', '$data{'firstname'}','$data{'altnotes'}','$data{'dateofbirth'}','$data{'contactname'}','$data{'emailaddress'}','$data{'textmessaging'}',
'$data{'joining'}','$data{'streetcity'}','$data{'altrelationship'}','$data{'othernames'}', '$data{'joining'}','$data{'streetcity'}','$data{'altrelationship'}','$data{'othernames'}',
'$data{'phoneday'}','$data{'categorycode'}','$data{'city'}','$data{'area'}','$data{'phone'}', '$data{'phoneday'}','$data{'categorycode'}','$data{'city'}','$data{'area'}','$data{'phone'}',
'$data{'borrowernotes'}','$data{'altphone'}','$data{'surname'}','$data{'initials'}', '$data{'borrowernotes'}','$data{'altphone'}','$data{'surname'}','$data{'initials'}',
'$data{'ethnicity'}','$data{'borrowernumber'}')"; '$data{'ethnicity'}','$data{'borrowernumber'}','$data{'streetaddress'}')";
} }
# ok if its an adult (type) it may have borrowers that depend on it as a guarantor # ok if its an adult (type) it may have borrowers that depend on it as a guarantor
# so when we update information for an adult we should check for guarantees and update the relevant part # so when we update information for an adult we should check for guarantees and update the relevant part
Expand Down
Expand Up @@ -82,7 +82,7 @@
</tr> </tr>


<tr valign=top bgcolor=white> <tr valign=top bgcolor=white>
<td COLSPAN=3><input type=text name=address size=40 value="<TMPL_VAR NAME=streetaddress>"></td> <td COLSPAN=3><input type=text name=address size=40 value="<TMPL_VAR NAME=address>"></td>
<td><input type=text name=city size=20 value="<TMPL_VAR NAME=city>"></td> <td><input type=text name=city size=20 value="<TMPL_VAR NAME=city>"></td>
<td> <td>
<SELECT NAME="area" SIZE="1"> <SELECT NAME="area" SIZE="1">
Expand Down
3 changes: 2 additions & 1 deletion memberentry.pl
Expand Up @@ -182,13 +182,14 @@


$template->param( $template->param(
member => $member, member => $member,
address => $data->{'streetaddress'},
firstname => $data->{'firstname'}, firstname => $data->{'firstname'},
surname => $data->{'surname'}, surname => $data->{'surname'},
othernames => $data->{'othernames'}, othernames => $data->{'othernames'},
initials => $data->{'initials'}, initials => $data->{'initials'},
ethcatpopup => $ethcatpopup, ethcatpopup => $ethcatpopup,
catcodepopup => $catcodepopup, catcodepopup => $catcodepopup,
streetaddress => $data->{'streetaddress'}, streetaddress => $data->{'physstreet'},
streetcity => $data->{'streetcity'}, streetcity => $data->{'streetcity'},
city => $data->{'city'}, city => $data->{'city'},
phone => $data->{'phone'}, phone => $data->{'phone'},
Expand Down

0 comments on commit 7460065

Please sign in to comment.