]> git.koha-community.org Git - koha.git/commit
Bug 27050: Allow multiple category_codes in delete_patrons.pl
authorTimothy Alexis Vass <timothy_alexis.vass@ub.lu.se>
Fri, 27 Nov 2020 13:21:11 +0000 (13:21 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 8 Feb 2021 16:09:34 +0000 (17:09 +0100)
commit8fbfa9da187341d892f230b30ff1d5cf85357293
treefd8853113485aa206ac1ff3490e39da79ad6ff17
parent58cc70a0cbc5721cdac79954faedf90c4214996c
Bug 27050: Allow multiple category_codes in delete_patrons.pl

This patch allows multiple --category_code <categorycode> in delete_patrons.pl

The t/db_dependent/Members.t test has 2 added testcases with multiple category_code.

To test:
1) Run the test: prove -l . -v t/db_dependent/Members.t
2) This requires records in the database with at least two category codes. For example PT and ST.
3) Run the script: delete_patrons.pl --category_code PT
4) Confirm the number of patrons that would have been deleted.
5) Run the script: delete_patrons.pl --category_code PT --category-code ST
6) Confirm the number of patrons that would have been deleted.
7) Sign Off

Sponsored-by: Lunds Universitetsbibliotek
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Members.pm
misc/cronjobs/delete_patrons.pl
t/db_dependent/Members.t