[Koha-bugs] [Bug 22461] Regression in #20287: LDAP user replication broken with mapped extended patron attributes
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 6 15:34:09 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22461
--- Comment #2 from Oliver Behnke <oliver.behnke at aei.mpg.de> ---
Regarding the missing extended attribute replication: I think the reason is
that the original code [1] set $borrowernumber to the newly created value, and
the current version's Patron:new()->store() doesn't do that, so $borrowernumber
is always 0. This would then cause [3] to never execute, hence the missing
update of the mapped extended attributes. FYI, this also causes the setting of
the messaging preferences to fail with a foreign key constraint violation at
[4].
[3]
https://github.com/Koha-Community/Koha/blob/a6059c4d2d43e43aa021069ce97d6424a76c4f41/C4/Auth_with_ldap.pm#L231
[4]
https://github.com/Koha-Community/Koha/blob/a6059c4d2d43e43aa021069ce97d6424a76c4f41/C4/Auth_with_ldap.pm#L227
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list