Bug 35489: Add a hidden input for itemnumber even if item has no barcode
authorNick Clemens <nick@bywatersolutions.com>
Tue, 5 Dec 2023 15:47:23 +0000 (15:47 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 3 Jan 2024 14:49:32 +0000 (15:49 +0100)
commit9fe3d5bc48f1ab07fb3222c0ff11fd387c73a9b5
treeb6852c070532bc2c50d1341b054a16cd2d1464fd
parente5c5424023423f3a783afb679b2cdf1763700215
Bug 35489: Add a hidden input for itemnumber even if item has no barcode

This page is a single form, all fields must have inputs to avoid data loss/mismatch

To test:
1 - Find a record in the catalog and add or edit items to have one item with a barcode and one without
2 - Place an item level hold on the item with no barcode
3 - Place another hold for a different patron on the item with a barcode
4 - From the holds table add an expiration date to the hold with a barcode and save
5 - Note the hold on the item with no barcode is now on the item with a barcode and the other hold is now a next available hold
6 - Delete the holds
7 - Apply patch
8 - Repeat 2-4
9 - Confirm the itemnumbers for the holds have not changed

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit b78be9bddb817c1dcc0aab81b5ecb8680b36f241)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc