From f08e8e6c123d176f288c2d6927508130492b9c84 Mon Sep 17 00:00:00 2001
From: Lucas Gass <lucas@bywatersolutions.com>
Date: Tue, 31 Oct 2023 18:00:06 +0000
Subject: [PATCH] Bug 34438: (follow-up): Amend kohastructure.sql

Signed-off-by: David Nind <david@davidnind.com>
---
 installer/data/mysql/kohastructure.sql | 1 +
 opac/opac-memberentry.pl               | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql
index 64fa14a0165..fd83a376388 100644
--- a/installer/data/mysql/kohastructure.sql
+++ b/installer/data/mysql/kohastructure.sql
@@ -1427,6 +1427,7 @@ CREATE TABLE `borrower_modifications` (
   `extended_attributes` mediumtext DEFAULT NULL,
   `gdpr_proc_consent` datetime DEFAULT NULL COMMENT 'data processing consent',
   `primary_contact_method` varchar(45) DEFAULT NULL COMMENT 'useful for reporting purposes',
+  `lang` varchar(25) DEFAULT NULL,
   PRIMARY KEY (`verification_token`(191),`borrowernumber`),
   KEY `verification_token` (`verification_token`(191)),
   KEY `borrowernumber` (`borrowernumber`)
diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl
index 74e7cb9f31e..a0f5a3ace28 100755
--- a/opac/opac-memberentry.pl
+++ b/opac/opac-memberentry.pl
@@ -100,8 +100,6 @@ if ( defined $min ) {
      );
  }
 
-my $defaultCategory = Koha::Patron::Categories->find(C4::Context->preference('PatronSelfRegistrationDefaultCategory'));
-
 my $translated_languages = C4::Languages::getTranslatedLanguages( 'opac', C4::Context->preference('template') );
 
 $template->param(
-- 
2.30.2