ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

DocTypes with names contain "case" will not work


#1

Has anyone encountered this issue?


#2

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


#3

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.


#4

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