Handle empty requires list when wrapping db.table.field.requires in IS_EMPTY_OR
This commit is contained in:
@@ -2483,6 +2483,7 @@ class IS_EMPTY_OR(Validator):
|
|||||||
if empty:
|
if empty:
|
||||||
return (self.null, None)
|
return (self.null, None)
|
||||||
if isinstance(self.other, (list, tuple)):
|
if isinstance(self.other, (list, tuple)):
|
||||||
|
error = None
|
||||||
for item in self.other:
|
for item in self.other:
|
||||||
value, error = item(value)
|
value, error = item(value)
|
||||||
if error: break
|
if error: break
|
||||||
|
|||||||
Reference in New Issue
Block a user