From 7aa6b04442eacdbef87f8dd71a9f30f284c714e2 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 24 Apr 2024 14:25:40 +0000 Subject: [PATCH] Bug 36575: (bug 34893 follow-up) Return patron when autocreating in Shibboleth Signed-off-by: Marcel de Rooy Signed-off-by: Wainui Witika-Park --- C4/Auth_with_shibboleth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth_with_shibboleth.pm b/C4/Auth_with_shibboleth.pm index 862985267a..4e32784051 100644 --- a/C4/Auth_with_shibboleth.pm +++ b/C4/Auth_with_shibboleth.pm @@ -136,7 +136,7 @@ sub _autocreate { my $patron = Koha::Patron->new( \%borrower )->store; C4::Members::Messaging::SetMessagingPreferencesFromDefaults( { borrowernumber => $patron->borrowernumber, categorycode => $patron->categorycode } ); - return ( 1, $patron->cardnumber, $patron->userid ); + return ( 1, $patron->cardnumber, $patron->userid, $patron ); } sub _sync { -- 2.39.5