Merge pull request #21305 from barredterra/data-import-cast-select
This commit is contained in:
commit
6cdded4e08
1 changed files with 1 additions and 1 deletions
|
|
@ -690,7 +690,7 @@ class Row:
|
|||
df = col.df
|
||||
if df.fieldtype == "Select":
|
||||
select_options = get_select_options(df)
|
||||
if select_options and value not in select_options:
|
||||
if select_options and cstr(value) not in select_options:
|
||||
options_string = ", ".join(frappe.bold(d) for d in select_options)
|
||||
msg = _("Value must be one of {0}").format(options_string)
|
||||
self.warnings.append(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue