diff --git a/erpnext/public/js/utils.js b/erpnext/public/js/utils.js index 09deb2d64da..ed25d70c1f8 100755 --- a/erpnext/public/js/utils.js +++ b/erpnext/public/js/utils.js @@ -1068,7 +1068,15 @@ frappe.form.link_formatters["Project"] = function (value, doc, df) { * @returns {string} - The link value with the added title. */ function add_link_title(value, doc, df, title_field) { - if (doc && value && doc[title_field] && doc[title_field] !== value && doc[df.fieldname] === value) { + if (doc.doctype != df.parent) { + return ""; + } else if ( + doc && + value && + doc[title_field] && + doc[title_field] !== value && + doc[df.fieldname] === value + ) { return value + ": " + doc[title_field]; } else if (!value && doc.doctype && doc[title_field]) { return doc[title_field];