misc: ignore validation defined as regex but with no regex (#36442)
This commit is contained in:
parent
59e506e86a
commit
6515fdff17
|
@ -979,7 +979,7 @@ class ValidationWidget(CompositeWidget):
|
|||
if validation_method and validation_method.get('regex'):
|
||||
return validation_method.get('regex')
|
||||
if validation['type'] == 'regex':
|
||||
return validation['value']
|
||||
return validation.get('value')
|
||||
return None
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue