]> 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)
committerroot <root@f1ebe1bec408>
Thu, 18 Apr 2019 09:55:34 +0000 (09:55 +0000)
commitd482c7b27257f5a63425633a17efed0747c317a1
treef9e44a6d279b8a9607fe3d2f5e75ff1759131b10
parent2d54c95e902c9111eb812d1b48dc0bb8df824f75
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>
C4/Auth_with_ldap.pm