https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19560
Nick Clemens <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #69097|0 |1 is obsolete| | --- Comment #4 from Nick Clemens <[email protected]> --- Created attachment 69130 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=69130&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. Signed-off-by: David Bourgault <[email protected]> Signed-off-by: Nick Clemens <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
