https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38776 --- Comment #32 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 209414 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209414&action=edit Bug 38776: (QA follow-up) load patron-restrictions.js and fix comment sync The new patron-restrictions.js file was not included in any template, so on the patron detail and circulation pages the hidden "comment" field was never populated: whatever predefined reason was selected (or typed in the free-text field), no comment was saved with the restriction, and the free-text field was always visible. - Include js/patron-restrictions.js in moremember.tt and circulation.tt, the two templates rendering the manual restriction form (via patron-detail-tabs.inc) - In patron-restrictions.js, sync the hidden comment field on "input" (not only "change") so typing updates it live, and keep the free-text value when "Others..." is selected instead of clearing it - Make the atomicupdate idempotent: INSERT IGNORE with explicit columns, so re-running it does not fail on the existing category Signed-off-by: Owen Leonard <oleonard@myacpl.org> -- You are receiving this mail because: You are watching all bug changes.