https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41439

--- Comment #18 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 195955
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195955&action=edit
Bug 41439: Fix hidden column inputs resetting values on save

When editing a rule while a column group is hidden, DataTables removes
hidden <td> elements from the DOM. On form submit, restoring visibility
with columns().visible(true) re-inserts those cells with empty inputs,
causing the corresponding fields to be saved as empty (e.g. unlimited).

Before making all columns visible, repopulate hidden column inputs from
the highlighted display row using DataTables' cached cell nodes. Mirrors
the same special-case logic used when clicking Edit (unlimited fields,
hardduedate, no_auto_renewal_after_hard_limit, cap_fine_to_replacement_price).

Also add CSP nonce to the <style> element to fix QA forbidden_patterns.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to