The patron modification tools wants you to provide a file of (or a list of scanned) patron barcodes, but when it has errors updating it presents you with the borrowernumber instead. Not many people know the borrowernumber that matches the barcode they scanned off the top of their head. The error should show the barcode number since that's what entered (or both the barcode number and the borrowernumber if need be). Example error: Can not update patron with borrowernumber 70552 Can not update patron with borrowernumber 74777 Can not update patron with borrowernumber 77472
How do you trigger this kind of error?
It could be quite easy to fix. Nicole, How do you get these errors?
You know what - Owen asks a good question ... I have no idea how I got that error - I must have been documenting something, but now I can't make the error happen ... any chance that error is in the code?
Created attachment 38520 [details] [review] Bug 11929 - patron modification error shows borrowernumber If an error occurs in patron batch modification, a message similar to the following is displayed: Can not update patron with borrowernumber 7055 It would be useful to have the cardnumber as well. This patch adds the card number to the lists of errors. It is not easy to trigger an error (see comments). For testing, I tweaked the sub ModMember in C4/Members.pm to always return false. To test: Apply patch Go to Home > Tools > Batch patron modification Enter some card numbers, continue to modify. Try to find a modification that triggers an error in ModMember (C4/Members.pm) If an error is triggered, verify that the card number is displayed in the error message(s).
(In reply to Marc Véron from comment #4) > Created attachment 38520 [details] [review] [review] > Try to find a modification that triggers an error in ModMember > (C4/Members.pm) Please detail :)
Created attachment 38642 [details] [review] Bug 11929 - patron modification error shows borrowernumber If an error occurs in patron batch modification, a message similar to the following is displayed: Can not update patron with borrowernumber 7055 It would be useful to have the cardnumber as well. This patch adds the card number to the lists of errors. It is not easy to trigger an error (see comments). For testing, I tweaked the sub ModMember in C4/Members.pm to always return false. TEST PLAN --------- 1) Log in as a superlibrarian and create a test user 2) Change the cardnumber to a number differing from the borrower number. 3) Home -> Tools -> Batch patron modification 4) Type in the cardnumber of that test user 5) Check the Library checkbox. 6) Click Save -- nice error, but it is only the card number. 7) Apply the patch 8) Repeat steps 3-6 -- nice error, but it is now more informative. 9) run koha qa test tools. Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Created attachment 38643 [details] [review] Bug 11929 - patron modification error shows borrowernumber If an error occurs in patron batch modification, a message similar to the following is displayed: Can not update patron with borrowernumber 7055 It would be useful to have the cardnumber as well. This patch adds the card number to the lists of errors. It is not easy to trigger an error (see comments). For testing, I tweaked the sub ModMember in C4/Members.pm to always return false. TEST PLAN --------- 1) Log in as a superlibrarian and create a test user 2) Change the cardnumber to a number differing from the borrower number. 3) Home -> Tools -> Batch patron modification 4) Type in the cardnumber of that test user 5) Check the Library checkbox. 6) Click Save -- nice error, but it is borrower number instead of the card number which was entered. 7) Apply the patch 8) Repeat steps 3-6 -- nice error, but it is now more informative. 9) run koha qa test tools. Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Created attachment 38645 [details] [review] Bug 11929 - patron modification error shows borrowernumber If an error occurs in patron batch modification, a message similar to the following is displayed: Can not update patron with borrowernumber 7055 It would be useful to have the cardnumber as well. This patch adds the card number to the lists of errors. It is not easy to trigger an error (see comments). For testing, I tweaked the sub ModMember in C4/Members.pm to always return false. TEST PLAN --------- 1) Log in as a superlibrarian and create a test user 2) Change the cardnumber to a number differing from the borrower number. 3) Home -> Tools -> Batch patron modification 4) Type in the cardnumber of that test user 5) Check the Library checkbox. 6) Click Save -- nice error, but it is borrower number instead of the card number which was entered. 7) Apply the patch 8) Repeat steps 3-6 -- nice error, but it is now more informative. 9) run koha qa test tools. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Patch pushed to master. Thanks Marc!
Pushed to 3.20.x will be in 3.20.1