[Bug 16299] New: Use validation plugin when creating a patron attribute type
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16299 Bug ID: 16299 Summary: Use validation plugin when creating a patron attribute type Change sponsored?: --- Product: Koha Version: master Hardware: All URL: /cgi-bin/koha/admin/patron-attr-types.pl OS: All Status: ASSIGNED Severity: enhancement Priority: P5 - low Component: System Administration Assignee: oleonard@myacpl.org Reporter: oleonard@myacpl.org QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com The patron attribute types entry form uses custom JS to perform basic validation. This can be handled more easily by the validation plugin. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16299 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff Patch complexity|--- |Small patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16299 --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 50434 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50434&action=edit Bug 16299 - Use validation plugin when creating a patron attribute type This patch replaces custom client-side form validation with use of the jQuery validation plugin. Besides reducing the amount of code in the template, this allows us to eliminate use of "onclick." This patch also makes a correction for HTML validity: <option value="" /> is not accepted. I have also added an id attribute to a <select> which lacked it. To test, apply the patch and go to Administration -> Patron attribute types. - Test creating a new patron attribute type. Try to submit the form without a code, description, or both. You should be prevented from doing so. - Test editing an existing patron attribute type. You should not be able to remove the description and have it save successfully. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16299 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #50434|0 |1 is obsolete| | --- Comment #2 from Marc Véron <veron@veron.ch> --- Created attachment 50499 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50499&action=edit Bug 16299 - Use validation plugin when creating a patron attribute type This patch replaces custom client-side form validation with use of the jQuery validation plugin. Besides reducing the amount of code in the template, this allows us to eliminate use of "onclick." This patch also makes a correction for HTML validity: <option value="" /> is not accepted. I have also added an id attribute to a <select> which lacked it. To test, apply the patch and go to Administration -> Patron attribute types. - Test creating a new patron attribute type. Try to submit the form without a code, description, or both. You should be prevented from doing so. - Test editing an existing patron attribute type. You should not be able to remove the description and have it save successfully. Signed-off-by: Marc Véron <veron@veron.ch> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16299 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off CC| |veron@veron.ch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16299 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16299 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #50499|0 |1 is obsolete| | --- Comment #3 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 50596 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50596&action=edit Bug 16299 - Use validation plugin when creating a patron attribute type This patch replaces custom client-side form validation with use of the jQuery validation plugin. Besides reducing the amount of code in the template, this allows us to eliminate use of "onclick." This patch also makes a correction for HTML validity: <option value="" /> is not accepted. I have also added an id attribute to a <select> which lacked it. To test, apply the patch and go to Administration -> Patron attribute types. - Test creating a new patron attribute type. Try to submit the form without a code, description, or both. You should be prevented from doing so. - Test editing an existing patron attribute type. You should not be able to remove the description and have it save successfully. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16299 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle@bywatersolutions.com Status|Passed QA |Pushed to Master --- Comment #4 from Kyle M Hall <kyle@bywatersolutions.com> --- Pushed to master for the 16.05 release! Thanks Owen! -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org