]> 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)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Tue, 16 Aug 2022 08:42:56 +0000 (10:42 +0200)
commit2a496382c1046195de6c6bdc08a8679ce4aa8fed
tree0fa4b4819c9f568ea2306999c7417d826d73ae3d
parent6804edc1b255759e782955b1044c158ca05299f4
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>
(cherry picked from commit b90787d5c8167b455cfd24e8cc24384c3ee70081)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 210a62cc3d6db48888c8c6e8ea1aaa7f4017202c)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
Koha/UI/Form/Builder/Item.pm
cataloguing/additem.pl
t/db_dependent/Koha/UI/Form/Builder/Item.t