Bug 31384 - When staging records we always default item processing to 'always_add' if we check for embedded items and don't apply matching
Summary: When staging records we always default item processing to 'always_add' if we ...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
: 31164 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-08-17 13:20 UTC by Nick Clemens (kidclamp)
Modified: 2022-08-17 13:58 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***