fix: convert pk from db to str.
This commit is contained in:
parent
615b27b675
commit
87972656d4
1 changed files with 3 additions and 1 deletions
|
|
@ -984,7 +984,9 @@ class Column:
|
|||
if self.df.fieldtype == "Link":
|
||||
# find all values that dont exist
|
||||
values = list({cstr(v) for v in self.column_values[1:] if v})
|
||||
exists = [d.name for d in frappe.db.get_all(self.df.options, filters={"name": ("in", values)})]
|
||||
exists = [
|
||||
cstr(d.name) for d in frappe.db.get_all(self.df.options, filters={"name": ("in", values)})
|
||||
]
|
||||
not_exists = list(set(values) - set(exists))
|
||||
if not_exists:
|
||||
missing_values = ", ".join(not_exists)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue