Sfoglia il codice sorgente

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4199 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 9 anni fa
parent
commit
8a5d91e997

+ 1 - 1
sources/form/validator/notemptyextkeyvalidator.class.inc.php

@@ -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';
 
 }