Bugzilla – Attachment 53862 Details for
Bug 16275
Prevent patron self registration if the email already filled in borrowers.email
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 16275: Add the new pref PatronSelfRegistrationEmailMustBeUnique
PASSED-QA-Bug-16275-Add-the-new-pref-PatronSelfReg.patch (text/plain), 3.78 KB, created by
Katrin Fischer
on 2016-08-01 22:38:24 UTC
(
hide
)
Description:
[PASSED QA] Bug 16275: Add the new pref PatronSelfRegistrationEmailMustBeUnique
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2016-08-01 22:38:24 UTC
Size:
3.78 KB
patch
obsolete
>From c2af346e2291deb6dfa5217c7f411ac18039d5ee Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sat, 23 Apr 2016 16:45:04 +0100 >Subject: [PATCH] [PASSED QA] Bug 16275: Add the new pref > PatronSelfRegistrationEmailMustBeUnique > >Sponsored-by: BULAC - http://www.bulac.fr/ >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >No errors > >Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > installer/data/mysql/atomicupdate/bug_16275.sql | 1 + > installer/data/mysql/sysprefs.sql | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref | 6 ++++++ > 3 files changed, 8 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_16275.sql > >diff --git a/installer/data/mysql/atomicupdate/bug_16275.sql b/installer/data/mysql/atomicupdate/bug_16275.sql >new file mode 100644 >index 0000000..6f635b4 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_16275.sql >@@ -0,0 +1 @@ >+INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('PatronSelfRegistrationEmailMustBeUnique', '0', 'If set, the field borrowers.email will be considered as a unique field on self registering', NULL, 'YesNo'); >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 46f89d5..ec95653 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -384,6 +384,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('PatronSelfRegistrationBorrowerMandatoryField','surname|firstname',NULL,'Choose the mandatory fields for a patron\'s account, when registering via the OPAC.','free'), > ('PatronSelfRegistrationBorrowerUnwantedField','',NULL,'Name the fields you don\'t want to display when registering a new patron via the OPAC.','free'), > ('PatronSelfRegistrationDefaultCategory','','','A patron registered via the OPAC will receive a borrower category code set in this system preference.','free'), >+('PatronSelfRegistrationEmailMustBeUnique', '0', 'If set, the field borrowers.email will be considered as a unique field on self registering', NULL, 'YesNo'), > ('PatronSelfRegistrationExpireTemporaryAccountsDelay','0',NULL,'If PatronSelfRegistrationDefaultCategory is enabled, this system preference controls how long a patron can have a temporary status before the account is deleted automatically. It is an integer value representing a number of days to wait before deleting a temporary patron account. Setting it to 0 disables the deleting of temporary accounts.','Integer'), > ('PatronSelfRegistrationVerifyByEmail','0',NULL,'If enabled, any patron attempting to register themselves via the OPAC will be required to verify themselves via email to activate his or her account.','YesNo'), > ('PatronsPerPage','20','20','Number of Patrons Per Page displayed by default','Integer'), >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 aa7a6c9..9026ead 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 >@@ -717,6 +717,12 @@ OPAC: > - pref: PatronSelfRegistrationAdditionalInstructions > type: htmlarea > class: html >+ - >+ - pref: PatronSelfRegistrationEmailMustBeUnique >+ choices: >+ yes: "Consider" >+ no: "Do not consider" >+ - "patron's email (borrowers.email) as unique on self registering. An email won't be accepted if it already exists in the database." > Advanced Search Options: > - > - Show search options >-- >1.9.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 16275
:
50612
|
50613
|
51064
|
51065
|
51181
|
51182
| 53862 |
53863