From 5b1b87455760702428a1e53f832dd3b2f109707b 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Kyle M Hall (cherry picked from commit a5b0aa20e553d7444778b2ca3d90c6e067d6fce1) Signed-off-by: Frédéric Demians --- .../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 764fb53481..2aa3b5ffd6 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.39.5