[Koha-bugs] [Bug 19560] Unable to delete library when branchcode contains special characters

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 9 16:21:44 CET 2017


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

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 69062
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=69062&action=edit
Bug 19560: Unable to delete library when branchcode contains special characters

This patch modifies the library administration page so that the library
delete button submits a form using POST rather than linking to the
delete operation with GET variables.

This patch also adds validation to the library entry form so that it
will only accept letters, numbers, hyphen, and underscore.

The validation method for this already existed in categories.js, so it
has been moved to staff-global.js and the validator warning message has
been moved to validator-strings.inc so it is included globally.

To test:
  - Add a library with a branchcode containing characters like & or
    #.
  - Apply the patch and clear your browser cache if necessary.
  - Try to delete the new library. It should delete successfully.
  - Add a library again and try to include spaces and/or special
    characters in the branchcode. The form validation script should
    prevent you from submitting the form.
  - Go do Administration -> Patron categories and add a new patron
    category. The category code field should prevent you from entering a
    code with spaces or special characters.

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


More information about the Koha-bugs mailing list