Bug 38672

Summary: Create label batch link in tools/manage-marc-import.pl doesn't do anything
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: ToolsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: phil
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Lucas Gass (lukeg) 2024-12-10 20:05:47 UTC
To recreate:

1. Stage a MARC record file with items included. 
2. Import to catalog 
3. GO to Cataloging > Manage staged MARC records
4. Notice the (Create label batch) link.
5. Click it and notice nothing happens, no label batch is created.
Comment 1 Katrin Fischer 2024-12-11 10:04:06 UTC
Could this be another CSRF related issue?
Comment 2 Lucas Gass (lukeg) 2024-12-11 14:44:37 UTC
(In reply to Katrin Fischer from comment #1)
> Could this be another CSRF related issue?

I looked briefly and I don't think so. It seems like there is a problem in create_labelbatch_from_importbatch.
Comment 3 Lucas Gass (lukeg) 2024-12-12 19:11:51 UTC
So this actually works, when my imported batch has items with correct branch, collection code, etc.

The problem is that I don't know if it works or not:

To recreate:
1. Click the link
2. Nothing seems to happen
3. Go to label batches, see a newly created label batch.