Spanish ID card checksum validation fails on a specific case
The Spanish localflavor has a form field that validates a Spanish ID card number. The function calculates the algorithm based on a module 10 checksum. There is a specific case, when the result of the checksum is 0, that the function raises a "string index out of range" error. A simple transformation has to be applied on this case.
Attachments
(1)
- 8229.diff
(1.9 KB
) - added by Marc Garcia 16 years ago.
- Fix for the issue, including a regression test for the failing case
Download all attachments as:
.zip
Change History
(4)
Triage Stage: |
Unreviewed → Accepted
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Fix for the issue, including a regression test for the failing case