Bug 15938

Summary: Use validation plugin when adding or editing classification sources and filing rules
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: kyle, veron
Version: Main   
Hardware: All   
OS: All   
URL: /cgi-bin/koha/admin/classsources.pl
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 15938 - Use validation plugin when adding or editing classification sources and filing rules
Bug 15938 - Use validation plugin when adding or editing classification sources and filing rules
Bug 15938 - Use validation plugin when adding or editing classification sources and filing rules

Description Owen Leonard 2016-02-29 17:06:11 UTC
In Administration -> Classification sources there is some embedded JavaScript which checks for empty form values. That kind of task is easily handled by the globally-included validation plugin.
Comment 1 Owen Leonard 2016-02-29 17:13:42 UTC Comment hidden (obsolete)
Comment 2 Owen Leonard 2016-02-29 17:15:24 UTC
Sorry, looks like an aborted git-bz attach added a link to Bug 15930 to my commit message. Not intentional!
Comment 3 Owen Leonard 2016-04-15 18:09:32 UTC
Bonus: This patch brings classsources.tt into compliance with the new JS9 coding guideline.
Comment 4 Marc Véron 2016-04-21 12:29:12 UTC Comment hidden (obsolete)
Comment 5 Jonathan Druart 2016-04-23 06:56:07 UTC
Created attachment 50597 [details] [review]
Bug 15938 - Use validation plugin when adding or editing classification sources and filing rules

In Administration -> Classification sources there is some embedded
JavaScript which checks for empty form values. This patch removes that
JS and adds validation using the globally-included validation plugin
instead.

To test, apply the patch and go to Administration -> Classification
sources.

- Click to add a new classification source and confirm that you cannot
  submit the form with empty required values.
- Edit an existing classification source and confirm that you cannot
  empty a required field and submit the form.
- Repeat the previous two steps with filing rules.

Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 6 Kyle M Hall (khall) 2016-04-29 13:32:01 UTC
Pushed to master for the May 2016 release. Istutiy Owen!