[Koha-bugs] [Bug 32426] Allow plugin to generate userid when creating patrons
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jan 23 14:17:19 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32426
--- Comment #1 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
FAKE_PATRON CODE (memberentry.pl)
my $fake_patron = Koha::Patron->new;
$fake_patron->userid($patron->userid) if $patron; # editing
if ( ( defined $newdata{'firstname'} || $category_type eq 'I' ) && (
defined $newdata{'surname'} ) ) {
# Full page edit, firstname and surname input zones are present
$fake_patron->firstname($newdata{firstname});
$fake_patron->surname($newdata{surname});
$fake_patron->generate_userid;
$newdata{'userid'} = $fake_patron->userid;
=> We should remove this code and leave userid to patron->store now imo.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list