Bugzilla – Attachment 115734 Details for
Bug 27395
Add warning to PatronSelfRegistrationDefaultCategory to avoid accidental patron deletion
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27395: Add a warning to PatronSelfRegistrationDefaultCategory
Bug-27395-Add-a-warning-to-PatronSelfRegistrationD.patch (text/plain), 3.46 KB, created by
David Nind
on 2021-01-25 01:56:57 UTC
(
hide
)
Description:
Bug 27395: Add a warning to PatronSelfRegistrationDefaultCategory
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-01-25 01:56:57 UTC
Size:
3.46 KB
patch
obsolete
>From fdbcb17fd021811058b484fec307cd65f9d623c2 Mon Sep 17 00:00:00 2001 >From: Eden Bacani <eden.bacani@gmail.com> >Date: Tue, 19 Jan 2021 21:21:51 +0000 >Subject: [PATCH] Bug 27395: Add a warning to > PatronSelfRegistrationDefaultCategory > >This patch adds a warning to the PatronSelfRegistrationDefaultCategory system >preference to not use a regular patron category for self registration. > >If a regular patron category code is used and the cleanup_database cronjob is setup >to delete unverified and unfinished OPAC self registrations, it permanently and >and unrecoverably deletes all patrons that have registered more than >PatronSelfRegistrationExpireTemporaryAccountsDelay days ago. > >It also removes unnecessary apostrophes at the end of two self registration >and modification system preference descriptions. > >Test plan: >1. Apply the patch. >2. Check that the warning message for the PatronSelfRegistrationDefaultCategory > system preference is clear and makes sense. >3. Sign off! > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >index d1973f272c..145fb0e06b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >@@ -796,7 +796,7 @@ OPAC: > yes: Allow > no: "Don't allow" > - "library patrons to register for an account via the OPAC." >- - <br><strong>NOTE:</strong> This needs <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=PatronSelfRegistrationDefaultCategory">PatronSelfRegistrationDefaultCategory</a> to be set to a valid patron category code.' >+ - "<br><strong>NOTE:</strong> This needs <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=PatronSelfRegistrationDefaultCategory'>PatronSelfRegistrationDefaultCategory</a> to be set to a valid patron category code." > - > - pref: PatronSelfRegistrationVerifyByEmail > choices: >@@ -809,8 +809,9 @@ OPAC: > - pref: PatronSelfRegistrationDefaultCategory > class: short > - "as the default patron category for patrons registered via the OPAC." >+ - "<br><strong>WARNING: Do not use a regular patron category for self registration.</strong> If the <code>misc/cronjobs/cleanup_database.pl</code> cronjob is setup to delete unverified and unfinished OPAC self registrations, it will permanently and unrecoverably delete all patrons that have registered more than <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=PatronSelfRegistrationExpireTemporaryAccountsDelay'>PatronSelfRegistrationExpireTemporaryAccountsDelay</a> days ago." > - >- - Delete patrons still in the category indicated by <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=PatronSelfRegistrationDefaultCategory">PatronSelfRegistrationDefaultCategory</a>' >+ - Delete patrons still in the category indicated by <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=PatronSelfRegistrationDefaultCategory">PatronSelfRegistrationDefaultCategory</a> > - pref: PatronSelfRegistrationExpireTemporaryAccountsDelay > class: integer > - "days after account creation." >-- >2.11.0
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 27395
:
115364
|
115734
|
115846