bug 3464 followup - fix glitches
authorGalen Charlton <gmcharlt@gmail.com>
Sun, 23 Aug 2009 22:37:19 +0000 (18:37 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Sun, 23 Aug 2009 22:38:56 +0000 (18:38 -0400)
* Fixed 'counry' typo
* added country and B_country to deleteborrowers

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
installer/data/mysql/kohastructure.sql
installer/data/mysql/updatedatabase.pl
members/memberentry.pl

index ac0b80b..0722a52 100644 (file)
@@ -862,6 +862,7 @@ CREATE TABLE `deletedborrowers` (
   `address2` text,
   `city` mediumtext NOT NULL,
   `zipcode` varchar(25) default NULL,
+  `country` text,
   `email` mediumtext,
   `phone` text,
   `mobile` varchar(50) default NULL,
@@ -873,6 +874,7 @@ CREATE TABLE `deletedborrowers` (
   `B_address` varchar(100) default NULL,
   `B_city` mediumtext,
   `B_zipcode` varchar(25) default NULL,
+  `B_country` text,
   `B_email` text,
   `B_phone` mediumtext,
   `dateofbirth` date default NULL,
index ef854f4..aee7bec 100755 (executable)
@@ -2541,6 +2541,8 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     # 
     $dbh->do("ALTER TABLE borrowers ADD `country` text AFTER zipcode");
     $dbh->do("ALTER TABLE borrowers ADD `B_country` text AFTER B_zipcode");
+    $dbh->do("ALTER TABLE deletedborrowers ADD `country` text AFTER zipcode");
+    $dbh->do("ALTER TABLE deletedborrowers ADD `B_country` text AFTER B_zipcode");
     print "Upgrade to $DBversion done (add country and B_country to borrowers)\n";
     SetVersion ($DBversion);
 }
index c7beb7f..ade31e2 100755 (executable)
@@ -222,7 +222,7 @@ if (!defined($guarantorid) or $guarantorid eq '' or $guarantorid eq '0') {
     # set only if parameter was passed from the form
     $newdata{'city'}    = $input->param('city')    if defined($input->param('city'));
     $newdata{'zipcode'} = $input->param('zipcode') if defined($input->param('zipcode'));
-    $newdata{'country'} = $input->param('counry') if defined($input->param('country'));
+    $newdata{'country'} = $input->param('country') if defined($input->param('country'));
 }
 
 #builds default userid