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

--- Comment #27 from Arthur Suzuki <[email protected]> ---
Created attachment 209286
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209286&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

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to