https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41251

--- Comment #34 from Paul Derscheid <[email protected]> ---
Created attachment 203332
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203332&action=edit
Bug 41251: (QA follow-up) Preserve batch item edits

The linked serial issue editor opened immediately after the batch item job
was enqueued. It could therefore load stale item values and write them back
when the issues were saved. Existing item branch values were also replaced
with the logged-in or subscription branch while constructing that editor.

Wait for the batch item job to finish before opening the serial issue editor.
Preserve existing home and holding libraries when preparing item fields, and
add regression coverage for existing and new item branch defaults.

Test plan:
1. Set EditLinkedSerialIssues to "Prompt."
2. Batch-edit linked and unlinked items, changing their home and current
   libraries.
3. Choose "Edit serial issues" and confirm that job progress is displayed.
4. Confirm the serial issue editor opens only after the job finishes.
5. Save the serial issues and confirm all batch item changes are retained.
6. Repeat with the preference set to "Don't prompt" and with only unlinked
   items; confirm both batch jobs complete normally.
7. Run `prove t/db_dependent/Items.t`.

Assisted-by: GPT-5.6 (OpenAI)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to