From 867d92256b1d46b0a39f45df62392acbe14585eb Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 18 Aug 2016 11:58:42 -0400 Subject: [PATCH] Bug 11019 - Require some fields when adding authorized value category Content-Type: text/plain; charset="utf-8" This patch modifies the form for adding an authorized value so that category, authorized value, and description are required fields. Previously a new authorized value category could be saved with no data. To test, apply the patch and go to Administration -> Authorized values. - Click the "New category" button. - Click the save button without filling in category, authorized value, or description. You should be prevented from submitting the form. - Verify that filling in the required fields allows the form to be submitted. - Perform the same test when editing an existing authorized value. Signed-off-by: Aleisha Amohia Signed-off-by: Jonathan Druart Follow-up for QA: Allow a blank authorised value to be created. --- .../intranet-tmpl/prog/en/modules/admin/authorised_values.tt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt index 764fb53..2aa3b5f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt @@ -76,12 +76,14 @@ $(document).ready(function() { [% IF ( action_modify ) %]
NOTE: If you change an authorized value code, existing records using it won't be updated. Changes to value descriptions will show immediately.
[% END %] -
+
  1. - [% IF ( action_add_category ) %] - + [% IF ( action_add_category ) %] + + + Required [% ELSE %]Category [% category %] [% END %] -- 2.1.4