Bugzilla – Attachment 128415 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.20 KB, created by
Katrin Fischer
on 2021-12-12 14:23:56 UTC
(
hide
)
Description:
Bug 13188: (QA follow-up) Modernise atomicupdate
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-12-12 14:23:56 UTC
Size:
2.20 KB
patch
obsolete
>From ba376ad1f2a1e3a7ce69971515e17324e1ec834e 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 > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > ...tronSelfModificationMandatoryField_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 0e9e76b358..43a3f5105d 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.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 13188
:
115371
|
115372
|
116085
|
122752
|
123335
|
125272
|
125273
|
125274
|
128409
|
128413
|
128414
| 128415 |
128416
|
128417
|
128418