Bugzilla – Attachment 149983 Details for
Bug 33574
Restriction type is not stored, all restrictions fall back to MANUAL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33574: Correct pointer for restrict_type.code
Bug-33574-Correct-pointer-for-restricttypecode.patch (text/plain), 3.51 KB, created by
Tomás Cohen Arazi (tcohen)
on 2023-04-20 18:11:40 UTC
(
hide
)
Description:
Bug 33574: Correct pointer for restrict_type.code
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2023-04-20 18:11:40 UTC
Size:
3.51 KB
patch
obsolete
>From 79caab59f977e5161c5c9bee86a200cef6ecda5b Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 20 Apr 2023 17:09:50 +0100 >Subject: [PATCH] Bug 33574: Correct pointer for restrict_type.code > >Somehow this was missed during QA of bug 31095.. likely during a rebase. > >Test plan: >1) Check that manual restriction types are now saved. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../prog/en/includes/patron-restrictions-tab.inc | 4 ++-- > .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-restrictions-tab.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-restrictions-tab.inc >index 4bedce39d11..1242dbf7469 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-restrictions-tab.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-restrictions-tab.inc >@@ -59,9 +59,9 @@ > [% FOREACH restriction_type IN restriction_types %] > [% IF !restriction_type.is_system %] > [% IF restriction_type.is_default %] >- <option value="[% code | html %]" selected>[% PROCESS restriction_type_description %]</option> >+ <option value="[% restriction_type.code | html %]" selected>[% PROCESS restriction_type_description %]</option> > [% ELSE %] >- <option value="[% code | html %]">[% PROCESS restriction_type_description %]</option> >+ <option value="[% restriction_type.code | html %]">[% PROCESS restriction_type_description %]</option> > [% END %] > [% END %] > [% END %] >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 cae5b6f2fa9..bd4a9fa3fa8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -1467,9 +1467,9 @@ legend:hover { > [% FOREACH restriction_type IN restriction_types %] > [% IF !restriction_type.is_system %] > [% IF restriction_type.is_default %] >- <option value="[% code | html %]" selected>[% PROCESS restriction_type_description %]</option> >+ <option value="[% restriction_type.code | html %]" selected>[% PROCESS restriction_type_description %]</option> > [% ELSE %] >- <option value="[% code | html %]">[% PROCESS restriction_type_description %]</option> >+ <option value="[% restriction_type.code | html %]">[% PROCESS restriction_type_description %]</option> > [% END %] > [% END %] > [% END %] >-- >2.34.1
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 33574
:
149972
| 149983