|
Lines 64-69
if (
Link Here
|
| 64 |
$patron_attrs->{categorycode} ||= C4::Context->preference('PatronSelfRegistrationDefaultCategory'); |
64 |
$patron_attrs->{categorycode} ||= C4::Context->preference('PatronSelfRegistrationDefaultCategory'); |
| 65 |
delete $patron_attrs->{timestamp}; |
65 |
delete $patron_attrs->{timestamp}; |
| 66 |
delete $patron_attrs->{verification_token}; |
66 |
delete $patron_attrs->{verification_token}; |
|
|
67 |
delete $patron_attrs->{changed_fields}; |
| 67 |
my $patron = Koha::Patron->new( $patron_attrs )->store; |
68 |
my $patron = Koha::Patron->new( $patron_attrs )->store; |
| 68 |
|
69 |
|
| 69 |
Koha::Patron::Consent->new({ borrowernumber => $patron->borrowernumber, type => 'GDPR_PROCESSING', given_on => $consent_dt })->store if $consent_dt; |
70 |
Koha::Patron::Consent->new({ borrowernumber => $patron->borrowernumber, type => 'GDPR_PROCESSING', given_on => $consent_dt })->store if $consent_dt; |
| 70 |
- |
|
|