Jump to content

Disable or edit DNI Validation


calin009

Recommended Posts

  • 1 month later...
  • 4 years later...

For 1.7.6.x the dni format for Romanian Companies (j40/2222/2019) to be accepted is

 

edit /classes/validate.php

Find

empty($dni) || (bool) preg_match('/^[0-9A-Za-z-.]{1,16}$/U', $dni);



Replace with
 

return empty($dni) || (bool) preg_match('/^[A-Z0-9\/]{1,16}$/i', $dni);

From here

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...