diff --git a/Koha/Database/Columns.pm b/Koha/Database/Columns.pm index f5c45af5de..4637d0cab3 100644 --- a/Koha/Database/Columns.pm +++ b/Koha/Database/Columns.pm @@ -180,6 +180,7 @@ sub columns { "privacy_guarantor_fines" => __("Show fines to guarantor"), "privacy" => __("Privacy settings"), "pronouns" => __("Pronouns"), + "protected" => __("Protected"), "relationship" => __("Relationship"), "secret" => __("Secret (2FA)"), "sex" => __("Gender"), diff --git a/Koha/Patrons/Import.pm b/Koha/Patrons/Import.pm index b1c751007e..d6e0846cad 100644 --- a/Koha/Patrons/Import.pm +++ b/Koha/Patrons/Import.pm @@ -146,6 +146,8 @@ sub import_patrons { $borrower{cardnumber} = undef if $borrower{cardnumber} eq ""; $borrower{auth_method} = undef if $borrower{auth_method} eq ""; + $borrower{protected} = 0 unless $borrower{protected}; + # Check if borrower category code exists and if it matches to a known category. Pushing error to missing_criticals otherwise. $self->check_borrower_category($borrower{categorycode}, $borrowerline, $line_number, \@missing_criticals);