Summary: | Message field for checkout notes should have a maxlength set | ||
---|---|---|---|
Product: | Koha | Reporter: | Jason Robb <jrobb> |
Component: | OPAC | Assignee: | Owen Leonard <oleonard> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | amitddng135, andrew, flyingendpaper, fridolin.somers, jonathan.druart, victor |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
21.05.00,20.11.05,20.05.11
|
|
Circulation function: | |||
Attachments: |
Bug 27991: Message field for OPAC problem reporting should have a maxlength set
Bug 27991: Message field for OPAC problem reporting should have a maxlength set Bug 27991: Message field for OPAC problem reporting should have a maxlength set |
Description
Jason Robb
2021-03-18 17:11:44 UTC
Created attachment 118469 [details] [review] Bug 27991: Message field for OPAC problem reporting should have a maxlength set This patch adds a maxlength attribute to the form field for entering checkout notes in the OPAC, matching the character limit of the database column. A note is added to show the 255 character limit. To test, apply the patch and enable the AllowCheckoutNotes system preference. - Log in to the OPAC as a user who has checkouts. - On the "Your summary" page, the "Report a problem" fields should have a hint below them, "255 characters maximum." - Try entering text in one of the fields. You should not be able to enter more than 255 characters: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse nunc mi, fringilla in mauris quis, hendrerit feugiat mi. Sed ultrices mollis nulla sit amet faucibus. Sed volutpat augue risus, eu rutrum eros commodo eu. Proin rhoncus nisi vitae magna_ - Test that your submission is saved correctly. Created attachment 118492 [details] [review] Bug 27991: Message field for OPAC problem reporting should have a maxlength set This patch adds a maxlength attribute to the form field for entering checkout notes in the OPAC, matching the character limit of the database column. A note is added to show the 255 character limit. To test, apply the patch and enable the AllowCheckoutNotes system preference. - Log in to the OPAC as a user who has checkouts. - On the "Your summary" page, the "Report a problem" fields should have a hint below them, "255 characters maximum." - Try entering text in one of the fields. You should not be able to enter more than 255 characters: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse nunc mi, fringilla in mauris quis, hendrerit feugiat mi. Sed ultrices mollis nulla sit amet faucibus. Sed volutpat augue risus, eu rutrum eros commodo eu. Proin rhoncus nisi vitae magna_ - Test that your submission is saved correctly. Works ok The bug description I think meant something different to what was actually fixed here: OPAC problem reports, which would have made it a duplicate to bug 27726. But now we have fixed checkout notes here. Fixing the bug description :) Created attachment 118914 [details] [review] Bug 27991: Message field for OPAC problem reporting should have a maxlength set This patch adds a maxlength attribute to the form field for entering checkout notes in the OPAC, matching the character limit of the database column. A note is added to show the 255 character limit. To test, apply the patch and enable the AllowCheckoutNotes system preference. - Log in to the OPAC as a user who has checkouts. - On the "Your summary" page, the "Report a problem" fields should have a hint below them, "255 characters maximum." - Try entering text in one of the fields. You should not be able to enter more than 255 characters: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse nunc mi, fringilla in mauris quis, hendrerit feugiat mi. Sed ultrices mollis nulla sit amet faucibus. Sed volutpat augue risus, eu rutrum eros commodo eu. Proin rhoncus nisi vitae magna_ - Test that your submission is saved correctly. Signed-off-by: Amit Gupta <amit.gupta@informaticsglobal.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Pushed to master for 21.05, thanks to everybody involved! Small usefull enhancement, I choose to backport. Pushed to 20.11.x for 20.11.05 Pushed to 20.05.x for 20.05.11 Not backported to oldoldstable (19.11.x). Feel free to ask if it's needed. |