From 302bb62fa3b48d3cff5b9dd6d9af287f8cc73f2b Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Fri, 31 Jan 2025 21:35:34 +0000 Subject: [PATCH] Bug 39012: Koha fails to import default MARC bibliographic framework Test plan: ========== 1. In Administration > MARC bibliographic, from framework menu on the right, prepare a csv file with framework export. 2. Try to import the fili into Default framework. 3. This should fail, with a redirect to a strange looking page, and with lots of errors in the logs. 4. Apply the patch ; restart all. 5. Repeat p. 2. You should succeed and you should be able to see the differences in the framework (if you exported from a different framework). --- admin/import_export_framework.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/import_export_framework.pl b/admin/import_export_framework.pl index 159ff08f59..d95edae1c8 100755 --- a/admin/import_export_framework.pl +++ b/admin/import_export_framework.pl @@ -79,6 +79,7 @@ if ($op eq 'export') { if ($uploadFd && !$input->cgi_error) { my $tmpfilename = $input->tmpFileName(scalar $input->param($fieldname)); $filename = $tmpfilename . '.' . $extension; # rename the tmp file with the extension + $frameworkcode = '' if $frameworkcode eq 'default'; $ok = ImportFramework($filename, $frameworkcode, 1, 'biblio') if (rename($tmpfilename, $filename)); } } -- 2.39.5