Merge pull request #21305 from barredterra/data-import-cast-select

This commit is contained in:
Suraj Shetty 2023-06-19 11:52:36 +05:30 committed by GitHub
commit 6cdded4e08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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