Bug 35264: Add "protected" column to patron import
authorDavid Cook <dcook@prosentient.com.au>
Mon, 6 Nov 2023 05:31:29 +0000 (05:31 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 6 Nov 2023 11:42:50 +0000 (08:42 -0300)
commit5414d696bc1118044766405f15c27e9f08c52693
tree317a00a51818b035cb0181413420f0939b63d901
parent24e1ee2118311bad39203a932dd4c6ab67c5d8c9
Bug 35264: Add "protected" column to patron import

This change adds the "protected" column to patron import.

Test plan:
0. Apply the patch and run "restart_all"
1. prove -v t/db_dependent/Koha/Patrons/Import.t
2. Go to http://localhost:8081/cgi-bin/koha/tools/import_borrowers.pl
3. Note "protected" is listed in the "fields you want to supply"
on the right side of the screen
4. Note "protected" appears in file downloaded by clicking
"Download a Starter CSV file with all the columns"
5. Note that "Protected" appears after clicking "Enter default values"
and after clicking "Preserve existing values"

6. For bonus marks, use the "Starter CSV file" to import a test patron
(remember surname, branchcode, and categorycode are the required fields)

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Database/Columns.pm
Koha/Patrons/Import.pm