data-import-tool: ignore select validation if no incoming value
This commit is contained in:
parent
d1ed886be7
commit
7980b9d3ad
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ def check_record(d, parentdoctype):
|
|||
if not webnotes.conn.exists(link_doctype, val):
|
||||
raise Exception, "%s must be a valid %s" % (key, link_doctype)
|
||||
else:
|
||||
if val not in docfield.options.split('\n'):
|
||||
if val and (val not in docfield.options.split('\n')):
|
||||
raise Exception, "%s must be one of:" % key
|
||||
|
||||
if docfield.fieldtype=='Date' and val:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue