Bugzilla – Attachment 159627 Details for
Bug 35510
Non-patron guarantor missing from CollapseFieldsPatronAddForm options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35510: Non-patron guarantor missing from CollapseFieldsPatronAddForm options
Bug-35510-Non-patron-guarantor-missing-from-Collap.patch (text/plain), 2.87 KB, created by
Owen Leonard
on 2023-12-06 17:49:56 UTC
(
hide
)
Description:
Bug 35510: Non-patron guarantor missing from CollapseFieldsPatronAddForm options
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-12-06 17:49:56 UTC
Size:
2.87 KB
patch
obsolete
>From 0f89d38d9f52443b5b0a16dc9bf9dea73f4199a2 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 6 Dec 2023 17:25:39 +0000 >Subject: [PATCH] Bug 35510: Non-patron guarantor missing from > CollapseFieldsPatronAddForm options > >This patch adds a missing option to the CollapseFieldsPatronAddForm >system preference so that the "Non-patron guarantor" section can be >collapsed by default. > >To test, apply the patch and go to Administration -> System preferences. > >- Search for CollapseFieldsPatronAddForm. >- In the dropdown of options you should see an entry for "Non-patron > guarantor." >- Click "Select all" and save your changes. >- Go to Patrons -> New patron and choose a patron category which can > have a guarantor (for example J - Juvenile) >- The patron entry page should load with all sections collapsed, > including the Non-patron guarantor section. >- Uncheck all options in the CollapseFieldsPatronAddForm > preference and return to the patron entry form. All sections should > now appear. >--- > .../prog/en/modules/admin/preferences/patrons.pref | 3 ++- > .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 3 +++ > 2 files changed, 5 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >index c2043b85dd..3fb2fcecfb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref >@@ -299,7 +299,8 @@ Patrons: > - pref: CollapseFieldsPatronAddForm > multiple: > identity: "Patron identity" >- guarantor: "Guarantor information" >+ guarantor: "Patron guarantor" >+ nonpatron_guarantor: "Non-patron guarantor" > primary_address: "Main address" > primary_contact: "Contact information" > alt_address: "Alternate address" >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index b6b70882e6..c511afc786 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -1698,6 +1698,9 @@ legend:hover { > $("#memberentry_guarantor").find('legend').nextAll().toggle(); > $("#guarantor_template").toggle(); > [% END %] >+ [% IF fieldstohide.match('nonpatron_guarantor') %] >+ $("#non_patron_guarantor").find('legend').nextAll().toggle(); >+ [% END %] > [% END %] > [% IF fieldstohide.match('primary_address') %] > $("#memberentry_mainaddress").find('legend').nextAll().toggle(); >-- >2.30.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 35510
:
159627
|
160034
|
160086
|
161028