Koha/tools
Alex Buckley 2d9aec24d6 Bug 29761: Prevent batch patron modification to process several time the same patron
If a cardnumber, SMS number, or borrower number is inputted multiple times then the batch patron
modification page should not display that patron multiple times.

Test plan:
1. Create three text files that list card numbers, SMS numbers, and borrower numbers for three patrons. Example lists are below, notice in each there is one number duplicated:

Card numbers:
  23529000035676
  23529000651225
  23529000080862
  23529000035676

Borrower numbers:
  19
  49
  7
  49

SMS numbers:
  2125551212
  2125551212
  2125551213
  2125551214

2. Enable sending of SMS messages:
* Set SMSSendDriver system preference to Email

3. Make sure the cardnumbers, borrower numbers, and SMS numbers listed
above belong to patrons in your Koha

4. Go to Tools > Batch patron modification

5. Upload lists of cardnumbers, SMS numbers, and borrower numbers above, and confirm the following is happening in the batch patron modification page:
- Upload the text file of cardnumbers. Notice one patron is displayed twice
- Paste in the list of cardnumbers. Notice one patron is displayed twice
- Upload the text file of SMS numbers. Notice one patron is displayed twice
- Paste in the list of SMS numbers. Notice one patron is displayed twice
- Upload the text file of borrower numbers. Notice one patron is displayed twice
- Paste in the list of borrower numbers. Notice one patron is displayed twice

6. Apply patch and restart services

7. Repeat step 5 and this time observe that the patron record is not duplicated in the batch patron modification page

Sponsored-By: Catalyst IT

Signed-off-by: David Nind <david@davidnind.com>

JD Amended patch: adjust commit title
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-02-21 15:15:47 -10:00
..
csv-profiles
access_files.pl
additional-contents.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
ajax-inventory.pl
automatic_item_modification_by_age.pl
background-job-progress.pl Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
batch_delete_records.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
batch_extend_due_dates.pl Bug 29380: Correct table name in joins to prevent errors 2021-11-03 15:40:52 +01:00
batch_record_modification.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
batch_records_ajax.pl Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
batchMod.pl Bug 28445: Fix subfields to blank 2021-10-18 11:28:40 +02:00
cleanborrowers.pl Bug 29843: Use in tools/cleanborrowers.pl 2022-02-10 14:44:23 -10:00
copy-holidays.pl
csv-profiles.pl
exceptionHolidays.pl
export.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
holidays.pl
import_borrowers.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
inventory.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
letter.pl Bug 24387: Rename "News" with "Additional contents" 2021-08-16 11:55:55 +02:00
manage-marc-import.pl
marc_modification_templates.pl
modborrowers.pl Bug 29761: Prevent batch patron modification to process several time the same patron 2022-02-21 15:15:47 -10:00
newHolidays.pl
overduerules.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
picture-upload.pl Bug 28576: Update the maximum size of an image. 2022-02-14 21:41:38 -10:00
problem-reports.pl
quotes-upload.pl
quotes.pl
scheduler.pl
showdiffmarc.pl
stage-marc-import.pl
stockrotation.pl Bug 29809: (follow-up) Update tests and rename variable 2022-01-31 21:55:40 -10:00
tools-home.pl
upload-cover-image.pl
upload-file.pl Bug 28785: Adjust check_cookie_auth calls 2021-10-18 11:28:41 +02:00
upload.pl
viewlog.pl Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00