From ea2ae452c587704dcb79595da2b92ce9f313ebdf Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 15 Nov 2022 09:08:19 +0100 Subject: [PATCH] Bug 31711: (bug 27421 follow-up) Fix add to basket from a new file We lost the display of the "Add staged files to basket" link when create a new order from a new file Test plan: Add order to basket from a new file, select a file and import See the detail of the job and notice the "Add staged files to basket", click and confirm that it works as expected. --- .../en/includes/background_jobs/stage_marc_for_import.inc | 4 ++-- tools/stage-marc-import.pl | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/stage_marc_for_import.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/stage_marc_for_import.inc index 4336b3df112..1ecc6747d7b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/stage_marc_for_import.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/background_jobs/stage_marc_for_import.inc @@ -38,9 +38,9 @@

View batch

- [% IF report.basketno && report.booksellerid %] + [% IF report.basket_id && report.vendor_id %]

- Add staged files to basket + Add staged files to basket

[% END %] [% END %] diff --git a/tools/stage-marc-import.pl b/tools/stage-marc-import.pl index ba4859f473d..2fe21b1a239 100755 --- a/tools/stage-marc-import.pl +++ b/tools/stage-marc-import.pl @@ -93,6 +93,8 @@ if ($fileID) { overlay_action => $overlay_action, nomatch_action => $nomatch_action, item_action => $item_action, + basket_id => $basketno, + vendor_id => $booksellerid, }; try { my $job_id = Koha::BackgroundJob::StageMARCForImport->new->enqueue( $params ); -- 2.25.1