Bugzilla – Attachment 22096 Details for
Bug 11019
Require some fields when adding authorized value category
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11019 Prevent adding new empty category in authorized values
Bug-11019-Prevent-adding-new-empty-category-in-aut.patch (text/plain), 1.83 KB, created by
Paul Poulain
on 2013-10-20 18:55:28 UTC
(
hide
)
Description:
Bug 11019 Prevent adding new empty category in authorized values
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2013-10-20 18:55:28 UTC
Size:
1.83 KB
patch
obsolete
>From 3325e8cb20e8b545c402c8377ed67d9d4d245bfc Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Sun, 20 Oct 2013 20:47:07 +0200 >Subject: [PATCH] Bug 11019 Prevent adding new empty category in authorized > values > >Test plan: >* Go to Koha > admin > authorised values > New category > save without entering a category value >* You'll get a message saying "this field is required" >* signoff >--- > .../prog/en/modules/admin/authorised_values.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 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 afdd882..0628d20 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 >@@ -73,13 +73,13 @@ $(document).ready(function() { > > [% IF ( action_modify ) %]<div class="note"><strong>NOTE:</strong> If you change an authorized value, existing records using it won't be updated.</div>[% END %] > >- <form action="[% script_name %]" name="Aform" method="post"> >+ <form action="[% script_name %]" name="Aform" class="validated" method="post"> > <input type="hidden" name="op" value="add_validate" /> > <input type="hidden" name="offset" value="[% offset %]" /> > <fieldset class="rows"><ol> > <li> > [% IF ( action_add_category ) %]<label for="category">Category: </label> >- <input type="text" name="category" id="category" size="16" maxlength="16" class="focus" /> >+ <input type="text" name="category" id="category" size="16" maxlength="16" class="focus,required" required="required" /> > [% ELSE %]<span class="label">Category</span> > <input type="hidden" name="category" value="[% category %]" /> [% category %] > [% END %] >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11019
:
21890
|
21899
|
22096
|
22097
|
22110
|
54577
|
54723
|
54761
|
54924
|
54948