From 8f9d08c91e76ef59c3fd51a7d5f83bbbc0ceb74f Mon Sep 17 00:00:00 2001 From: hdl Date: Tue, 12 Sep 2006 13:25:51 +0000 Subject: [PATCH] BugFixing adding informations branch to child creation. --- .../intranet-tmpl/default/en/members/jmemberentry.tmpl | 6 +++--- members/insertjdata.pl | 6 +++--- members/jmemberentry.pl | 3 +++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/default/en/members/jmemberentry.tmpl b/koha-tmpl/intranet-tmpl/default/en/members/jmemberentry.tmpl index 9e7bdecf05..454d654c5b 100644 --- a/koha-tmpl/intranet-tmpl/default/en/members/jmemberentry.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/members/jmemberentry.tmpl @@ -2,9 +2,9 @@

Add New Junior Member


- + "> + "> + "> "> "> diff --git a/members/insertjdata.pl b/members/insertjdata.pl index 44f72ad954..bce62d8347 100755 --- a/members/insertjdata.pl +++ b/members/insertjdata.pl @@ -48,7 +48,7 @@ for (my $i=0;$i<1;$i++){ my $sth=$dbh->prepare("Select * from borrowers where borrowernumber=?"); $sth->execute($data{'bornumber_child_$i'}); if (my $data=$sth->fetchrow_hashref){ - $query="update borrowers set title='$data{'title'}',expiry='$data{'expiry'}', + $query="update borrowers set title='$data{'title'}',branchcode='$data{'branchcode'}',expiry='$data{'expiry'}', cardnumber='$data{'cardnumber'}',sex='$data{'sex'}',ethnotes='$data{'ethnicnotes'}', streetaddress='$data{'address'}',faxnumber='$data{'faxnumber'}',firstname='$data{'firstname'}', altnotes='$data{'altnotes'}',dateofbirth='$data{'dateofbirth'}',contactname='$data{'contactname'}', @@ -79,7 +79,7 @@ for (my $i=0;$i<1;$i++){ $query="insert into borrowers (title,expiry,cardnumber,sex,ethnotes,streetaddress,faxnumber, firstname,altnotes,dateofbirth,contactname,emailaddress,dateenrolled,streetcity, altrelationship,othernames,phoneday,categorycode,city,area,phone,borrowernotes,altphone,surname, - initials,ethnicity,borrowernumber,guarantor,school,physstreet,sort1,sort2) + initials,ethnicity,borrowernumber,guarantor,school,physstreet,sort1,sort2, branchcode) values ('','$data{'expiry'}', '$cardnumber', '$sex','$data{'ethnotes'}','$data{'address'}','$data{'faxnumber'}', @@ -87,7 +87,7 @@ for (my $i=0;$i<1;$i++){ '$data{'joining'}','$data{'streetcity'}','$data{'altrelationship'}','$data{'othernames'}', '$data{'phoneday'}','C','$data{'city'}','$data{'area'}','$data{'phone'}', '$notes','$data{'altphone'}','$surname','$data{'initials'}', - '$data{'ethnicity'}','$bornum','$guarant','$school','$data{'physstreet'}','$data{'sort1'}','$data{'sort2'}')"; + '$data{'ethnicity'}','$bornum','$guarant','$school','$data{'physstreet'}','$data{'sort1'}','$data{'sort2'}','$data{'branchcode'}')"; } #print $query; diff --git a/members/jmemberentry.pl b/members/jmemberentry.pl index 14351d6ee3..7da01e4eb8 100755 --- a/members/jmemberentry.pl +++ b/members/jmemberentry.pl @@ -93,6 +93,9 @@ $template->param( member => $member, emailaddress => $data->{'emailaddress'}, contactname => $data->{'contactname'}, altphone => $data->{'altphone'}, + branchcode => $data->{'branchcode'}, + expiry => $data->{'expiry'}, + zipcode => $data->{'zipcode'}, dateformat => display_date_format(), titleloop => \@titledata, cmemloop => \@cmemdata, -- 2.39.5