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.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-11-15 09:08:19 +01:00 committed by Tomas Cohen Arazi
parent 937b7114d0
commit 4907e96ba8
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 4 additions and 2 deletions

View file

@ -38,9 +38,9 @@
<p>
<a href="/cgi-bin/koha/tools/manage-marc-import.pl?import_batch_id=[% report.import_batch_id | uri %]">View batch</a>
</p>
[% IF report.basketno && report.booksellerid %]
[% IF report.basket_id && report.vendor_id %]
<p>
<a id="addtobasket" class="btn btn-default" href="/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=[% report.import_batch_id | html %]&basketno=[% report.basketno | html %]&booksellerid=[% report.booksellerid | html %]">Add staged files to basket</a>
<a id="addtobasket" class="btn btn-default" href="/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=[% report.import_batch_id | html %]&basketno=[% report.basket_id | html %]&booksellerid=[% report.vendor_id | html %]">Add staged files to basket</a>
</p>
[% END %]
[% END %]

View file

@ -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 );