Bug 31384

Summary: When staging records we always default item processing to 'always_add' if we check for embedded items and don't apply matching
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: ToolsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Nick Clemens (kidclamp) 2022-08-17 13:20:40 UTC
To recreate:
1 - Stage a file for import
2 - Set 'Check for embedded item record data' to 'Yes'
3 - Set 'How to process items' to 'ignore'
4 - Do not set a 'Record matching rule'
5 - Stage file
6 - View the staged file
7 - Item processing set to 'always_add'

These options don't really make sense, but we shouldn't automagically change settings
Comment 1 Nick Clemens (kidclamp) 2022-08-17 13:24:30 UTC
From C4/ImportBatch.pm

sub BatchStageMarcRecords {
...
 346     if ($parse_items) {
 347         SetImportBatchItemAction($batch_id, 'always_add');
 348     } else {
 349         SetImportBatchItemAction($batch_id, 'ignore');
 350     }
Comment 2 Katrin Fischer 2022-08-17 13:58:09 UTC
*** Bug 31164 has been marked as a duplicate of this bug. ***