- Issue created by @tiagohfweb
Currently, the Brazilian IDs module allows adding CPF, CNPJ, and RG fields, but there is no validation to ensure these fields are unique in the system. This can lead to data duplication and inconsistencies, especially in systems that require the uniqueness of these identifiers for compliance and data integrity purposes.
Add uniqueness validation for the CPF, CNPJ, and RG fields in the Brazilian IDs module. This can be done using the Drupal validation API to ensure that the values entered in these fields are unique in the database.
No significant changes to the user interface, except for the possible display of error messages when attempting to save a field with a duplicate value.
No changes to the existing API. The uniqueness validation will be implemented using Drupal's standard hooks and methods.
Possibly the addition of unique indexes for the CPF, CNPJ, and RG fields in the relevant database tables.
Active
1.0
Code