From a45f2fdfcaa75d0d8efd8cd71c041702c1c299a0 Mon Sep 17 00:00:00 2001 From: David Gustafsson Date: Mon, 27 Mar 2023 15:06:29 +0200 Subject: [PATCH] Bug 33342: Fix framework handling in manage-marc-import.pl In a follow up in bug 15869 an if clause is added where "=" is used instead of "eq" resulting in framwork always being set to undef. Fix this by using the correct operator. Also fix the name of the framework placeholder in manage-marc-import.pl which differed from the template. --- tools/manage-marc-import.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/manage-marc-import.pl b/tools/manage-marc-import.pl index e48b4790291..e74d9255ab8 100755 --- a/tools/manage-marc-import.pl +++ b/tools/manage-marc-import.pl @@ -90,7 +90,7 @@ if ($op eq "") { } elsif ($op eq "commit-batch") { my $frameworkcode = $input->param('framework'); my $overlay_framework = $input->param('overlay_framework'); - $overlay_framework = undef if $overlay_framework = '_USE_ORIG'; + $overlay_framework = undef if $overlay_framework eq '_USE_ORIG_'; try { my $job_id = Koha::BackgroundJob::MARCImportCommitBatch->new->enqueue( { -- 2.39.2