mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
- Non mandatory fields can be empty, even if a validation pattern was specified.
SVN:trunk[434]
This commit is contained in:
@@ -155,6 +155,11 @@ function ValidateField(sFieldId, sPattern, bMandatory, sFormId)
|
||||
{
|
||||
bValid = false;
|
||||
}
|
||||
else if ((currentVal == '') || (currentVal == 0))
|
||||
{
|
||||
// An empty field is Ok...
|
||||
bValid = true;
|
||||
}
|
||||
else if (sPattern != '')
|
||||
{
|
||||
re = new RegExp(sPattern);
|
||||
|
||||
Reference in New Issue
Block a user