Bug 40751

Summary: Undo record import does not undo changed frameworks
Product: Koha Reporter: Miranda Nero <mnero>
Component: MARC Bibliographic record staging/importAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
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 Miranda Nero 2025-09-03 17:21:13 UTC
When staging records, if you replace existing records and change the framework in that process and then undo the import, the existing record frameworks don't revert back to what they were before replacing them.

To recreate:
-Stage a file of records that will match on existing records
-Choose a "Replacement record framework" that is different from the framework the existing records are using
-Import the batch
-Undo the import
-Check one of the records to see the overlay didn't happen but the framework was still changed