]> git.koha-community.org Git - koha.git/commit
Bug 31179: Don't copy invisible subfields when duplicating items
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 19 Jul 2022 14:09:46 +0000 (16:09 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 20 Jul 2022 12:04:58 +0000 (09:04 -0300)
commitb90787d5c8167b455cfd24e8cc24384c3ee70081
tree05de84ab3d0dfd858dcbb8de69d4a2e4e778fede
parent47c860548715ee2248cb5c45e6441edb286c7559
Bug 31179: Don't copy invisible subfields when duplicating items

Duplicate item is intended to duplicate the visible cataloging fields of an item, however,
currently it is duplicating the complete internal record of the item

To recreate:
1 - find an item in Koha staff client, copy the barcode
2 - Issue this item to a patron
3 - Return to the record
4 - Edit items
5 - Click 'Actions->Duplicate' for the item in question
6 - Save the item
7 - Note in the items table above for that 'Total checkouts' 'Due date'
 etc. have not been copied to new item

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/UI/Form/Builder/Item.pm
cataloguing/additem.pl
t/db_dependent/Koha/UI/Form/Builder/Item.t