]> git.koha-community.org Git - koha.git/commit
Bug 22461: Fix LDAP user replication
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 15 Mar 2019 23:16:41 +0000 (20:16 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 26 Apr 2019 13:39:38 +0000 (14:39 +0100)
commitc1ef5545560ba1ad50f96db6514eb7a22507daca
tree7d59886aa3789271fb1688ff68714336bc94ce35
parent9535293c4a13fb4ef4ccf7a3314248ac94be7156
Bug 22461: Fix LDAP user replication

From bug 20287:
-        $borrowernumber = C4::Members::AddMember(%borrower) or die "AddMember failed";
+        Koha::Patron->new( \%borrower )->store;
         C4::Members::Messaging::SetMessagingPreferencesFromDefaults( { borrowernumber => $borrowernumber, categorycode => $borrower{'categorycode'} } );

$borrowernumber is not updated with the value of the newly created patron

This patch restores the previous behavior (as well as the die)

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit d482c7b27257f5a63425633a17efed0747c317a1)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Auth_with_ldap.pm