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> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
01d149b48a
commit
ce9c97cda3
|
|
@ -135,6 +135,8 @@ sub _autocreate {
|
|||
}
|
||||
|
||||
my $patron = Koha::Patron->new( \%borrower )->store;
|
||||
$patron->discard_changes;
|
||||
|
||||
C4::Members::Messaging::SetMessagingPreferencesFromDefaults(
|
||||
{
|
||||
borrowernumber => $patron->borrowernumber,
|
||||
|
|
|
|||
Loading…
Reference in New Issue