[Koha-bugs] [Bug 35695] New: Remove useless item group code from cataloging_additem.js
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jan 3 23:55:53 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35695
Bug ID: 35695
Summary: Remove useless item group code from
cataloging_additem.js
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Cataloging
Assignee: koha-bugs at lists.koha-community.org
Reporter: lucas at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
CC: m.de.rooy at rijksmuseum.nl
As I worked on Bug 33639 I noticed some code in cataloging_additem.js that
doesn't work/isn't needed:
137 $('#item-group-add-or-create-form-select').on('change', function() {
138 if ( ! $('input.items-enumchron').val() ) {
139 let item_group_selector = '#item-group-' + $(this).val();
140 let enumchron = $(item_group_selector).val();
141 $('input.items-enumchron').val( enumchron );
142 }
143 });
The selectors are bad and it would be easy to make them work. But I don't see
any reason why item groups should be updating the items.enumchron field.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list