mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Form : Fixed call to form_field::validate on fields with no form_field widget (typically LabelField)
SVN:trunk[3958]
This commit is contained in:
@@ -223,7 +223,7 @@ $(function()
|
||||
{
|
||||
var oField = this.getField(aFieldsToValidate[i]);
|
||||
// Checking if the field still exists as it could have been from a dynamic subform (Typically with custom fields)
|
||||
if(oField.length > 0)
|
||||
if(oField.length > 0 && oField.hasClass('form_field'))
|
||||
{
|
||||
var oRes = oField.triggerHandler('validate', oData);
|
||||
if (!oRes.is_valid)
|
||||
|
||||
Reference in New Issue
Block a user