From 41c0fabc9b77748663725dae10dcca7cd731e0c5 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 18 Aug 2016 11:58:42 -0400 Subject: [PATCH] [PASSED QA] Bug 11019 - Require some fields when adding authorized value category This patch modifies the form for adding an authorized value so that the category is a 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 the category. You should be prevented from submitting the form. - Verify that filling in the required field 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. Signed-off-by: Katrin Fischer Amended test plan. --- .../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.7.4