Customer portal : Fixed external key validator. Could not contain '0'.

SVN:trunk[4199]
This commit is contained in:
Guillaume Lajarige
2016-06-13 12:33:00 +00:00
parent bd4aca770e
commit 4a63989237

View File

@@ -29,7 +29,7 @@ use \Combodo\iTop\Form\Validator\Validator;
class NotEmptyExtKeyValidator extends Validator
{
const VALIDATOR_NAME = 'notemptyextkey';
const DEFAULT_REGEXP = '^[1-9]+$';
const DEFAULT_REGEXP = '^[0-9]*[1-9][0-9]*$';
const DEFAULT_ERROR_MESSAGE = 'Core:Validator:MustSelectOne';
}