Merge pull request #8765 from hrwX/tags_patch_add_parent

fix(Tags): Global Tags fixes
This commit is contained in:
mergify[bot] 2019-11-07 08:20:22 +00:00 committed by GitHub
commit 951415dc4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View file

@ -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

View 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")

View file

@ -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) {