Bugzilla – Attachment 172737 Details for
Bug 38125
Setting patron reading privacy to "never" will immediately delete all reading history without warning
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38125: Add a warning if privacy pulldown is changed to "never"
Bug-38125-Add-a-warning-if-privacy-pulldown-is-cha.patch (text/plain), 2.36 KB, created by
Owen Leonard
on 2024-10-14 15:16:23 UTC
(
hide
)
Description:
Bug 38125: Add a warning if privacy pulldown is changed to "never"
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2024-10-14 15:16:23 UTC
Size:
2.36 KB
patch
obsolete
>From 6eba87615c813b6675d522f20476dd1fccd1c3e8 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 8 Oct 2024 13:39:31 -0400 >Subject: [PATCH] Bug 38125: Add a warning if privacy pulldown is changed to > "never" > >It is possible to interpret the language on opac-privacy.pl as only >acting on future checkins and not current historical checkouts. We >should add clarifying text to that page > >Test plan: >1) Apply this patch >2) Enable opac privacy >3) Change pulldown to "never" >4) Note the warning message appears > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt | 1 + > koha-tmpl/opac-tmpl/bootstrap/js/privacy.js | 9 +++++++++ > 2 files changed, 10 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt >index 892404cc24..bb1b0ee707 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt >@@ -96,6 +96,7 @@ > </select> > </div> <!-- /.col-6 --> > </div> <!-- /.form-group.row --> >+ <div id="never-warning" class="alert alert-danger">This option will delete all previous checkout history immediately.</div> > > [% IF has_guarantor_flag && (Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') || Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') ) %] > [% IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/privacy.js b/koha-tmpl/opac-tmpl/bootstrap/js/privacy.js >index 92289679a6..bc7b6b66a7 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/privacy.js >+++ b/koha-tmpl/opac-tmpl/bootstrap/js/privacy.js >@@ -3,4 +3,13 @@ $(document).ready(function(){ > $('.privacy-confirm-delete').on('click',function(){ > return confirmDelete( __("Warning: Cannot be undone. Please confirm once again") ); > }); >+ >+ $('#never-warning').hide(); >+ $('#privacy').on('change', function() { >+ if ( $(this).val() == '2' ) { >+ $('#never-warning').show(); >+ } else { >+ $('#never-warning').hide(); >+ } >+ }); > }); >-- >2.39.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 38125
:
172542
|
172737
|
173545