[Koha-bugs] [Bug 35273] When editing items on receive, aqorders_items is not updated correctly
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Nov 7 12:04:09 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35273
--- Comment #6 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
The problem is coming around this code:
468 var _build_item = function(item, tr) {
469 var chb = $('<input type="checkbox" name="items_to_receive"
value="'+item.item_id+'" />')
470 .prop('checked', item._checked)
471 .change(function() {
472 item._checked = $(this).prop('checked');
473 });
496 function PopupEditPage(biblionumber, itemnumber) {
509 success: function(item) {
510 var tr = $("#item_"+itemnumber);
511 item._checked =
$(tr).find('input[type="checkbox"]').prop('checked');
512 tr.html('');
513 _build_item(item, tr);
When the popup page is opened we lost the on change trigger (because we
recreate the tr).
This is ugly but the least intrusive I have found to not introduce
regressions...
--
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