Koha-clms/koha-tmpl/intranet-tmpl/prog/en/modules
Emmi Takkinen 02515ebcc7
Bug 43239: Preserve item item type if previousitemtype column is undefined
It is possible to create serial item with wrong itemtype if syspreference
makePreviousSerialAvailable is enabled and field "item type for older issues"
isn't filled when creating a subscription for biblio record. This happens
when multiple items are created. In installations where itemtypes differ
between items and biblios, this causes data inconsistencies and leads to
errors in biblios Holdings table.

This patch changes behaviour of serials-edit.pl so that if
makePreviousSerialAvailable is enabled and subscriptions previousitemtype
column is NULL, previous serial items itype column is preserved. It also
adds a hint text to subscription form about this change.

To test:
1. Enable systempreference makePreviousSerialAvailable.
2. Create new biblio record.
3. Create a new subscription for biblio record you made, select option
"Create an item record", select different item type from "Item type"
selection than biblio record has but leave selection "item type for older
issues" empty.
4. Receive a serial item for subscription. Check from biblio records
Holdings table that its item type matches item type selected in step 3.
5. Now receive 3 serial items. After creating them check Holdings table again.
=> Note that first item created now has same item type as biblio record.
6. Apply this patch, restart services.
7. Create new subscription, fill needed fields as in step 3.
=> Note that there is a new hint text after field "item type for older issues".
8. Repeat steps 4. and 5.
=> Note that now all items have same item type.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-08-12 15:49:49 +00:00
..
acqui Bug 42279: (QA follow-up) Fix straying TT variable, auto tidy 2026-07-29 15:49:58 +00:00
admin Bug 30759: Add hint about the data that is sent via the Google Books API to OPACSuggestionAutoFill 2026-08-06 16:07:36 +00:00
authorities Bug 42284: (QA follow-up) Fix missing query param index 2026-07-28 14:33:02 +00:00
basket Bug 42564: Upgrade Font Awesome in the staff interface to 7.2 2026-06-19 12:00:10 +00:00
batch Bug 35267: Ignore style tags with TT tags 2026-04-17 09:18:11 -06:00
bookings Bug 41898: Introduce 'issued' status and update booking display/filtering 2026-07-27 15:53:33 +00:00
catalogue Bug 42632: Fix "Manage bundle" after filters are shown/hidden 2026-07-27 15:53:41 +00:00
cataloguing Bug 43206: cn_browser plugin red background on exact match is hard to read 2026-08-03 13:00:35 +00:00
circ Bug 40498: Improve style of list transfer form 2026-08-06 16:07:36 +00:00
clubs Bug 42012: Fix missing preventDefault() call in clubs.tt 2026-03-20 12:01:07 +00:00
course_reserves Bug 38365: Add CSP nonces to all inline script and style tags 2026-03-16 11:57:42 +01:00
erm Bug 38365: Add CSP nonces to all inline script and style tags 2026-03-16 11:57:42 +01:00
errors Bug 41177: (follow-up) A few minor corrections 2025-11-18 06:56:53 -07:00
ill Bug 42286: Tidy all script tags - ill (auto tidy) 2026-06-26 11:56:53 +00:00
installer Bug 39055: Change "op" to "login_op" when logging in to allow original op to flow through 2026-03-19 10:51:27 +00:00
labels Bug 42439: Remove event attributes from label-edit-batch.tt 2026-05-06 15:20:56 -06:00
mana
…
members Bug 41898: Introduce 'issued' status and update booking display/filtering 2026-07-27 15:53:33 +00:00
offline_circ Bug 40492: Improvements to offline circ actions table 2026-07-28 14:32:44 +00:00
onboarding
…
patron_lists Bug 42564: Upgrade Font Awesome in the staff interface to 7.2 2026-06-19 12:00:10 +00:00
patroncards Bug 41653: Move addPrefs and addPermissions under the Koha namespace 2026-04-17 09:18:00 -06:00
plugins Bug 42163: (follow-up) fix plugin wrapper menus, plugins-home.tt, and plugins-upload.tt 2026-04-23 09:24:56 -06:00
pos Bug 40445: (follow-up) Move TT values out of kohaTable script blocks 2026-08-04 10:20:56 +00:00
preservation Bug 38365: Add CSP nonces to all inline script and style tags 2026-03-16 11:57:42 +01:00
recalls Bug 38365: Add CSP nonces to all inline script and style tags 2026-03-16 11:57:42 +01:00
reports Bug 42451: Remove duplicate success message 2026-08-06 16:05:26 +00:00
reserve Bug 41879: Disallow moves to invalid pickup locations for next available holds 2026-07-27 15:53:25 +00:00
reviews Bug 38365: Add CSP nonces to all inline script and style tags 2026-03-16 11:57:42 +01:00
rotating_collections Bug 42104: The term ID should be capitalized 2026-04-29 09:09:30 -06:00
serials Bug 43239: Preserve item item type if previousitemtype column is undefined 2026-08-12 15:49:49 +00:00
services
…
sip2 Bug 38365: Add CSP nonces to all inline script and style tags 2026-03-16 11:57:42 +01:00
suggestion Bug 42471: (follow-up) prevent XSS in suggestion status 2026-08-11 12:39:35 +00:00
tags Bug 38365: Add CSP nonces to all inline script and style tags 2026-03-16 11:57:42 +01:00
tools Bug 42766: (QA follow-up) Add 'SCRIPTS' to log viewer 2026-08-04 10:20:54 +00:00
virtualshelves Bug 40498: Improve style of list transfer form 2026-08-06 16:07:36 +00:00
about.tt Bug 43177: Use archived link for Bridge Material Type Icon Set 2026-08-03 13:00:29 +00:00
auth.tt Bug 39055: Change "op" to "login_op" when logging in to allow original op to flow through 2026-03-19 10:51:27 +00:00
intranet-main.tt Bug 42535: Remove .news_delete JS from the main page 2026-06-19 12:00:15 +00:00