misc: ignore validation defined as regex but with no regex (#36442)

This commit is contained in:
Frédéric Péters 2019-10-01 08:02:14 +02:00
parent 59e506e86a
commit 6515fdff17
1 changed files with 1 additions and 1 deletions

View File

@ -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