Bug 29661 - PreFillItem should not apply to duplicated items
Summary: PreFillItem should not apply to duplicated items
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 21.05
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords: regression
Depends on:
Blocks: 29663
  Show dependency treegraph
 
Reported: 2021-12-08 16:52 UTC by Andrew Fuerste-Henry
Modified: 2022-01-09 11:41 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuerste-Henry 2021-12-08 16:52:18 UTC
In 21.05.07, the PreFillItem syspref is applied when duplicating an item. This was not the case in previous versions of Koha and is not the case on master.
To recreate (on 21.05):
- set PrefillItem to "the new item is prefilled ..."
- set SubfieldsToUseWhenPrefill to 3 so that the Materials Specified value is prefilled
- create an item that has a Materials Specified note
- confirm that when the Add Item page reloads after creating your item, the Materials Specified note is prefilled as expected
- find an item without a Materials Specified value, duplicate it
- confirm your duplicate item's Materials Specified is prefilled with the value from your first item, when it should be null like your second item
Comment 1 David Cook 2021-12-08 22:27:31 UTC
I think that we've noticed the same thing in 21.05.x and similar report that it didn't happen in the past.