Merge pull request #35429 from therealtimex/realtimex-develop
fix(model): Postgres-compatible rename_field user settings lookup
This commit is contained in:
commit
83f2b08dc3
1 changed files with 3 additions and 3 deletions
|
|
@ -166,9 +166,9 @@ def update_user_settings(doctype, old_fieldname, new_fieldname):
|
|||
sync_user_settings()
|
||||
|
||||
user_settings = frappe.db.sql(
|
||||
''' select user, doctype, data from `__UserSettings`
|
||||
where doctype=%s and data like "%%%s%%"''',
|
||||
(doctype, old_fieldname),
|
||||
""" select user, doctype, data from `__UserSettings`
|
||||
where doctype=%s and data like %s""",
|
||||
(doctype, f"%{old_fieldname}%"),
|
||||
as_dict=1,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue