Bugzilla – Attachment 125274 Details for
Bug 13188
Make it possible to configure mandatory patron data differently between OPAC registration and modification
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13188: (QA follow-up) Modernise atomicupdate
Bug-13188-QA-follow-up-Modernise-atomicupdate.patch (text/plain), 2.14 KB, created by
Martin Renvoize (ashimema)
on 2021-09-24 15:26:54 UTC
(
hide
)
Description:
Bug 13188: (QA follow-up) Modernise atomicupdate
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-09-24 15:26:54 UTC
Size:
2.14 KB
patch
obsolete
>From ebb5d101d7116c641d7fdc8bc911b59a08722723 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 24 Sep 2021 16:26:14 +0100 >Subject: [PATCH] Bug 13188: (QA follow-up) Modernise atomicupdate > >--- > ...elfModificationMandatoryField_syspref.perl | 23 ++++++++++++------- > 1 file changed, 15 insertions(+), 8 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_13188_add_PatronSelfModificationMandatoryField_syspref.perl b/installer/data/mysql/atomicupdate/bug_13188_add_PatronSelfModificationMandatoryField_syspref.perl >index 0e9e76b3583..43a3f5105d5 100644 >--- a/installer/data/mysql/atomicupdate/bug_13188_add_PatronSelfModificationMandatoryField_syspref.perl >+++ b/installer/data/mysql/atomicupdate/bug_13188_add_PatronSelfModificationMandatoryField_syspref.perl >@@ -1,9 +1,16 @@ >-$DBversion = 'XXX'; # will be replaced by the RM >-if( CheckVersion( $DBversion ) ) { >- $dbh->do(q{ >- INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) >- SELECT 'PatronSelfModificationMandatoryField', value, NULL, 'Define the required fields when a patron is editing their information via the OPAC','multiple' >- FROM (SELECT value FROM systempreferences WHERE variable="PatronSelfRegistrationBorrowerMandatoryField") tmp >- }); >- NewVersion($DBversion, 13188, "Allow configuration of required fields when a patron is editing their information via the OPAC"); >+use Modern::Perl; >+ >+return { >+ bug_number => "13188", >+ description => "Allow configuration of required fields when a patron is editing their information via the OPAC", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ >+ $dbh->do(q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) >+ SELECT 'PatronSelfModificationMandatoryField', value, NULL, 'Define the required fields when a patron is editing their information via the OPAC','multiple' >+ FROM (SELECT value FROM systempreferences WHERE variable="PatronSelfRegistrationBorrowerMandatoryField") tmp >+ }); >+ }, > } >-- >2.20.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 13188
:
115371
|
115372
|
116085
|
122752
|
123335
|
125272
|
125273
|
125274
|
128409
|
128413
|
128414
|
128415
|
128416
|
128417
|
128418