https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42398 Bug ID: 42398 Summary: Form validation does not work when a dedicated validation handler is set and form has class validated Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Staff interface Assignee: koha-bugs@lists.koha-community.org Reporter: bibliothek@th-wildau.de QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com When a form has a class="validated" and gets a dedicated validation handler like $("#add_additional_content").validate({ submitHandler: function(form){ ... } }); this dedicated handler gets overwritten by staff-global.js as there each form[class=validated] is called with $(this).validate(); So each form with a dedicated validation handler must not have a class "validated". So far this appears to: - koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt <form method="get" id="modal-item-group-create-form" class="validated"> - koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt <form method="get" id="modal-item-group-edit-form" class="validated"> - koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt <form method="get" id="modal-item-group-set-form" class="validated"> - koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt <form id="add_additional_content" method="post" action="/cgi-bin/koha/tools/additional-contents.pl" class="validated"> -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.