[Koha-bugs] [Bug 28495] Add validation to branchcode upon library creation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 11 19:09:47 CEST 2021


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

Salman Ali <salman.ali at inLibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #121737|0                           |1
        is obsolete|                            |

--- Comment #3 from Salman Ali <salman.ali at inLibro.com> ---
Created attachment 121867
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121867&action=edit
Bug 28495: Improve validation of library entry form

This patch adds validation of the "Library code" field so that entry is
limited to letters and numbers.

Also changed: Updated the email fields to add the "email" type attribute
(see also Bug 27805).

To test, apply the patch and go to Administration -> Libraries -> New
library.

- Try entering various strings in the "Library code" field. If you enter
  anything other than letters and numbers an error message should be
  displaed on blur or on submit.
- Try submitting the form with no data in the "Library code" and/or
  "Name" field. The fields should be required.
- Test entering various strings in the email-type fields:
  Email, Ill staff email, Reply-To, and Return-Path. Non-email entries
  should trigger a message, "Please enter a valid email address."

Signed-off-by: Salman Ali <salman at outaouais>

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


More information about the Koha-bugs mailing list