From cf32a3c9b70201dbfea80810ef1953c49b3ff878 Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 16 Apr 2026 04:31:09 +0000 Subject: [PATCH] Bug 42374: Remove buggy ISBN_RANGE_MESSAGE env variable value This patch removes an ISBN_RANGE_MESSAGE env variable that is accidentally set by Business::ISBN::Data. Test plan: - git checkout v25.11.03-2 - reset_all - git checkout -b 42374 origin/main - Apply the patch - restart_all - Go to staff interface (e.g. http://localhost:8081/) - Log into web installer - Click "Update your database" - Note it works - Repeat the process but instead of using the web installer use updatedatabase.pl directly (say through koha-upgrade-schema) Signed-off-by: Jonathan Druart Signed-off-by: Emily Lamancusa Signed-off-by: Lucas Gass (cherry picked from commit bf867d08c20e42436b574ba8df74f44b647629c6) Signed-off-by: Jacob O'Mara --- installer/data/mysql/updatedatabase.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 9d1e08384b..40c925bf9b 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -31,6 +31,11 @@ use Modern::Perl; use feature 'say'; +BEGIN { + #See BZ 42374 about bug in Business::ISBN::Data + delete $ENV{ISBN_RANGE_MESSAGE} if defined $ENV{ISBN_RANGE_MESSAGE}; +} + # CPAN modules use DBI; use Getopt::Long;