Bugzilla – Attachment 143902 Details for
Bug 31711
When creating order lines "From a new file" you are no longer redirected to acq after import
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31711: (bug 27421 follow-up) Fix add to basket from a new file
Bug-31711-bug-27421-follow-up-Fix-add-to-basket-fr.patch (text/plain), 2.61 KB, created by
Nick Clemens (kidclamp)
on 2022-11-15 13:35:40 UTC
(
hide
)
Description:
Bug 31711: (bug 27421 follow-up) Fix add to basket from a new file
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2022-11-15 13:35:40 UTC
Size:
2.61 KB
patch
obsolete
>From 77bbce2558b42b78cc3ac1e0419c25fb281ddd8d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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. > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > .../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 4336b3df11..1ecc6747d7 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 @@ > <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 %] >diff --git a/tools/stage-marc-import.pl b/tools/stage-marc-import.pl >index ba4859f473..2fe21b1a23 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.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31711
:
143892
|
143902
|
143907