Bugzilla – Attachment 103963 Details for
Bug 22844
Simplify the process of selecting database columns for system preferences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22844: Add the new entry to the patron attr types form
Bug-22844-Add-the-new-entry-to-the-patron-attr-typ.patch (text/plain), 3.30 KB, created by
Victor Grousset/tuxayo
on 2020-04-29 16:37:06 UTC
(
hide
)
Description:
Bug 22844: Add the new entry to the patron attr types form
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2020-04-29 16:37:06 UTC
Size:
3.30 KB
patch
obsolete
>From f8ab3caa2409bec14db604d14ff698727b7fc891 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 17 May 2019 09:14:00 -0500 >Subject: [PATCH] Bug 22844: Add the new entry to the patron attr types form > >Will conflict with bug 20443 \o/ > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > admin/patron-attr-types.pl | 3 ++- > .../prog/en/modules/admin/patron-attr-types.tt | 8 ++++++++ > 2 files changed, 10 insertions(+), 1 deletion(-) > >diff --git a/admin/patron-attr-types.pl b/admin/patron-attr-types.pl >index b923638427..6f86b330df 100755 >--- a/admin/patron-attr-types.pl >+++ b/admin/patron-attr-types.pl >@@ -98,7 +98,6 @@ sub error_add_attribute_type_form { > my $template = shift; > > $template->param(description => scalar $input->param('description')); >- > $template->param( category_code => scalar $input->param('category_code') ); > $template->param( class => scalar $input->param('class') ); > >@@ -120,6 +119,7 @@ sub add_update_attribute_type { > my $opac_display = $input->param('opac_display') ? 1 : 0; > my $opac_editable = $input->param('opac_editable') ? 1 : 0; > my $staff_searchable = $input->param('staff_searchable') ? 1 : 0; >+ my $mandatory = $input->param('mandatory') ? 1 : 0; > my $authorised_value_category = $input->param('authorised_value_category'); > my $display_checkout = $input->param('display_checkout') ? 1 : 0; > my $category_code = $input->param('category_code'); >@@ -152,6 +152,7 @@ sub add_update_attribute_type { > opac_display => $opac_display, > opac_editable => $opac_editable, > staff_searchable => $staff_searchable, >+ mandatory => $mandatory, > authorised_value_category => $authorised_value_category, > display_checkout => $display_checkout, > category_code => $category_code, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >index 862dad52fc..5cd3067a5c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt >@@ -126,6 +126,14 @@ > [% END %] > <span>Check to make this attribute staff_searchable in the staff patron search.</span> > </li> >+ <li><label for="mandatory">Mandatory: </label> >+ [% IF attribute_type AND attribute_type.mandatory %] >+ <input type="checkbox" id="mandatory" name="mandatory" checked="checked" /> >+ [% ELSE %] >+ <input type="checkbox" id="mandatory" name="mandatory" /> >+ [% END %] >+ <span>Check to make this attribute mandatory when creating or editing a patron.</span> >+ </li> > <li><label for="display_checkout">Display in patron's brief information: </label> > [% IF attribute_type AND attribute_type.display_checkout %] > <input type="checkbox" id="display_checkout" name="display_checkout" checked="checked" /> >-- >2.26.2
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 22844
:
89322
|
89323
|
89389
|
89403
|
89530
|
89531
|
89749
|
89903
|
89904
|
89905
|
90407
|
96007
|
98145
|
98146
|
98147
|
98148
|
98149
|
98150
|
98151
|
98297
|
98298
|
100440
|
100441
|
100442
|
100443
|
100444
|
100445
|
100446
|
100447
|
101198
|
101199
|
101200
|
101201
|
101202
|
101203
|
101204
|
101205
|
101302
|
101480
|
101481
|
101482
|
101483
|
101484
|
101485
|
101486
|
101487
|
101488
|
101617
|
101618
|
101619
|
101620
|
101621
|
101622
|
101623
|
101624
|
103842
|
103843
|
103844
|
103845
|
103846
|
103847
|
103848
|
103849
|
103850
|
103904
|
103960
|
103961
|
103962
|
103963
|
103964
|
103965
|
103966
|
103967
|
103968
|
103969
|
106545
|
106546
|
106547
|
106548
|
106549
|
106550
|
106551
|
106552
|
106553
|
106554
|
107126