Rebuild help for docs which have been renamed (#5521)
After execution of a bulk rename, the help cache for the particular doctype didn't used to change. Added this fix to ensure the help is rebuilt for the particular doctype whose docs have been renamed
This commit is contained in:
parent
947f409826
commit
439effed7d
1 changed files with 2 additions and 0 deletions
|
|
@ -390,6 +390,8 @@ def bulk_rename(doctype, rows=None, via_console = False):
|
|||
else:
|
||||
rename_log.append(msg)
|
||||
|
||||
frappe.enqueue('frappe.utils.global_search.rebuild_for_doctype', doctype=doctype)
|
||||
|
||||
if not via_console:
|
||||
return rename_log
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue