Merge pull request #8765 from hrwX/tags_patch_add_parent
fix(Tags): Global Tags fixes
This commit is contained in:
commit
951415dc4b
3 changed files with 7 additions and 1 deletions
|
|
@ -256,3 +256,4 @@ frappe.patches.v12_0.update_global_search
|
|||
execute:frappe.reload_doc('desk', 'doctype', 'notification_settings')
|
||||
frappe.patches.v12_0.setup_tags
|
||||
frappe.patches.v12_0.update_auto_repeat_status_and_not_submittable
|
||||
frappe.patches.v12_0.copy_to_parent_for_tags
|
||||
|
|
|
|||
6
frappe/patches/v12_0/copy_to_parent_for_tags.py
Normal file
6
frappe/patches/v12_0/copy_to_parent_for_tags.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import frappe
|
||||
|
||||
def execute():
|
||||
|
||||
frappe.db.sql("UPDATE `tabTag Link` SET parenttype=document_type")
|
||||
frappe.db.sql("UPDATE `tabTag Link` SET parent=document_name")
|
||||
|
|
@ -177,7 +177,6 @@ frappe.ui.Filter = class {
|
|||
if (doctype === "Tag Link" || fieldname === "_user_tags") {
|
||||
original_docfield = {fieldname: "tag", fieldtype: "Data", label: "Tags", parent: "Tag Link"};
|
||||
doctype = "Tag Link";
|
||||
condition = "=";
|
||||
}
|
||||
|
||||
if(!original_docfield) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue