Bugzilla – Attachment 124325 Details for
Bug 28929
No filtering on borrowers.flags on member entry pages (OPAC, self registration, staff interface)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28929: Prevent flags to be sent during patron's edition
Bug-28929-Prevent-flags-to-be-sent-during-patrons-.patch (text/plain), 1.45 KB, created by
Jonathan Druart
on 2021-09-01 12:25:26 UTC
(
hide
)
Description:
Bug 28929: Prevent flags to be sent during patron's edition
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-09-01 12:25:26 UTC
Size:
1.45 KB
patch
obsolete
>From b9412f9d248fbdfe7a1392855a26921abb1ec920 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 31 Aug 2021 15:55:15 +0200 >Subject: [PATCH] Bug 28929: Prevent flags to be sent during patron's edition > >* selfreg and selfmod for OPAC >* patron's edition on staff > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Tested OPAC and staff side. Prevents mangling flags column. >--- > members/memberentry.pl | 1 + > opac/opac-memberentry.pl | 1 + > 2 files changed, 2 insertions(+) > >diff --git a/members/memberentry.pl b/members/memberentry.pl >index 5844b9c3f90..c9460583af7 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -215,6 +215,7 @@ if ( $op eq 'insert' || $op eq 'modify' || $op eq 'save' || $op eq 'duplicate' ) > # remove keys from %newdata that is not part of patron's attributes > { > my @keys_to_delete = ( >+ qr/^flags$/, > qr/^BorrowerMandatoryField$/, > qr/^category_type$/, > qr/^check_member$/, >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index 8945cc339ba..c940a6e1af6 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -522,6 +522,7 @@ sub ParseCgiForBorrower { > # Replace checkbox 'agreed' by datetime in gdpr_proc_consent > $borrower{gdpr_proc_consent} = dt_from_string if $borrower{gdpr_proc_consent} && $borrower{gdpr_proc_consent} eq 'agreed'; > >+ delete $borrower{flags}; > return %borrower; > } > >-- >2.25.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 28929
:
124308
|
124310
|
124315
|
124316
|
124317
|
124323
|
124325
|
124364
|
124365
|
124366
|
124405
|
124406
|
124407
|
124683
|
124684
|
124685