FIXME regresion if code with not in numeric base

This commit is contained in:
Regis Houssin 2013-04-22 16:42:44 +02:00
parent 28757c8d88
commit 7f6a87ab35

View File

@ -456,11 +456,12 @@ if (GETPOST('actionadd') || GETPOST('actionmodify'))
$ok=0;
$msg.= $langs->transnoentities('ErrorCodeCantContainZero').'<br>';
}
if (!is_numeric($_POST['code']))
// FIXME regresion if code with not in numeric base
/*if (!is_numeric($_POST['code']))
{
$ok = 0;
$msg .= $langs->transnoentities('ErrorFieldFormat', $langs->transnoentities('Code')).'<br />';
}
}*/
}
if (isset($_POST["country"]) && $_POST["country"]=='0') {
$ok=0;