https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44293 --- Comment #1 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 212628 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212628&action=edit Bug 44293: Return to the staged file after ordering a single record When adding to a basket from a staged file, the "New order" button sends an empty import_batch_id (biblio.import_batch_id does not exist), so Koha goes back to the basket instead of the staged file once the order is saved. Fixing the link alone is not enough: addorder.pl builds the return URL with $$orderinfo{booksellerid}, which is never set, and addorderiso2709.pl then dies with "Can't call method "name" on an undefined value". This patch passes the batch id in the link and takes the vendor from the basket. Test plan: 1. Stage a MARC file (Cataloging > Stage records for import) 2. Acquisitions > a basket > Add to basket > From a staged file, choose the file 3. Click "New order" on a record, fill the form and save => You are back on the basket page 4. Apply the patch, restart_all 5. Repeat 2 and 3 => You are back on the staged file, the ordered record is no longer listed -- You are receiving this mail because: You are watching all bug changes.