Bugzilla – Attachment 173374 Details for
Bug 36822
When creating a new patron via LDAP or Shibboleth 0000-00-00 is inserted for invalid updated_on
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36822: Shibboleth - Add discard_changes
Bug-36822-Shibboleth---Add-discardchanges.patch (text/plain), 1.02 KB, created by
Pedro Amorim
on 2024-10-25 14:48:46 UTC
(
hide
)
Description:
Bug 36822: Shibboleth - Add discard_changes
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-10-25 14:48:46 UTC
Size:
1.02 KB
patch
obsolete
>From b34f0c16549f021c3925089880845ce1a6cef32c Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Fri, 25 Oct 2024 14:36:23 +0000 >Subject: [PATCH] Bug 36822: Shibboleth - Add discard_changes > >Test plan: >1) Apply only Shibboleth tests patch >2) Run that test file: >$ prove t/db_dependent/Auth_with_shibboleth.t >3) Verify tests fail with the updated_on error message. >4) Apply this patch. Repeat 2) Verify tests now pass. > >Co-authored-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/Auth_with_shibboleth.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/C4/Auth_with_shibboleth.pm b/C4/Auth_with_shibboleth.pm >index 3e6f42b57c..e3eb281cfc 100644 >--- a/C4/Auth_with_shibboleth.pm >+++ b/C4/Auth_with_shibboleth.pm >@@ -135,6 +135,8 @@ sub _autocreate { > } > > my $patron = Koha::Patron->new( \%borrower )->store; >+ $patron->discard_changes; >+ > C4::Members::Messaging::SetMessagingPreferencesFromDefaults( > { > borrowernumber => $patron->borrowernumber, >-- >2.39.5
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 36822
:
173373
|
173374
|
173375
|
173376
|
173377
|
173385
|
173386
|
173387
|
173388
|
173389
|
173391
|
173392
|
173393
|
173394
|
173395
|
173402
|
173403
|
173404
|
173405
|
173406
|
173646
|
173903
|
173904
|
173905
|
173906
|
173907
|
173908
|
173909
|
174523
|
174525