Bug 29661

Summary: PreFillItem should not apply to duplicated items
Product: Koha Reporter: Andrew Fuerste-Henry <andrew>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: dcook, fridolin.somers, m.de.rooy
Version: 21.05Keywords: regression
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29662
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 29663    

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.