DocTypes with names contain "case" will not work

Has anyone encountered this issue?

as I was debugging it the code stops at this field

locate("", tabClinic Case Type.name) as `_relevance

function: def sanitize_fields(self)
file: /apps/frappe/frappe/model/db_query.py

I think the reason for this is,

this list variable blacklisted_keywords = [‘select’, ‘create’, ‘insert’, ‘delete’, ‘drop’, ‘update’, ‘case’]

has an element ‘case’

which my DocType name has a word ‘case’ on it.

1 Like

Created an issue: https://github.com/frappe/frappe/issues/6908

1 Like