View | Details | Raw Unified | Return to bug 30288
Collapse All | Expand All

(-)a/Koha/Patron.pm (-2 / +1 lines)
Lines 1769-1775 sub anonymize { Link Here
1769
        split /\s*\|\s*/, C4::Context->preference('BorrowerMandatoryField') };
1769
        split /\s*\|\s*/, C4::Context->preference('BorrowerMandatoryField') };
1770
    $mandatory->{userid} = 1; # needed since sub store does not clear field
1770
    $mandatory->{userid} = 1; # needed since sub store does not clear field
1771
    my @columns = $self->_result->result_source->columns;
1771
    my @columns = $self->_result->result_source->columns;
1772
    @columns = grep { !/borrowernumber|branchcode|categorycode|^date|password|flags|updated_on|lastseen|lang|login_attempts|anonymized/ } @columns;
1772
    @columns = grep { !/borrowernumber|branchcode|categorycode|^date|password|flags|updated_on|lastseen|lang|login_attempts|anonymized|auth_method/ } @columns;
1773
    push @columns, 'dateofbirth'; # add this date back in
1773
    push @columns, 'dateofbirth'; # add this date back in
1774
    foreach my $col (@columns) {
1774
    foreach my $col (@columns) {
1775
        $self->_anonymize_column($col, $mandatory->{lc $col} );
1775
        $self->_anonymize_column($col, $mandatory->{lc $col} );
1776
- 

Return to bug 30288