[Koha-bugs] [Bug 27805] Use input type "email" for email preferences

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 4 15:53:20 CET 2021


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

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 117733
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=117733&action=edit
Bug 27805: Use input type "email" for email preferences

This patch changes the way input fields are output in the system
preferences template for preferences which have an "email" class. The
input type will now be "email" instead of "text."

Email type inputs are "loosely" validated. Mozilla's documentation says
valid patterns are "username at domain or username at domain.tld," so Koha's
default "root at localhost" will still work.

The other advantage of an "email" type input is that it typically
triggers different keyboard options in mobile devices.

To test, apply the patch and go to Administration -> Global system
preferences.

- Search system preferences for "email."
- Test the email type preferences you find (e.g. KohaAdminEmailAddress,
  ReplytoDefault, SendAllEmailsTo), confirming that email
  addresses like username at domain or username at domain.tld work correctly.
- Confirm that any other value triggers a validation error.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list