mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-20 03:47:11 +00:00
fix(ui): do not decorate self-referential links with the row's own title (#59023)
This commit is contained in:
@@ -1233,7 +1233,8 @@ 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 (value && doc[title_field]) {
|
||||
const title_belongs_to_value = df.options !== df.parent || value === doc.name;
|
||||
if (value && title_belongs_to_value && doc[title_field]) {
|
||||
if (doc[title_field] !== value && doc[df.fieldname] === value) {
|
||||
return value + ": " + doc[title_field];
|
||||
} else if (doc.doctype == df.parent) {
|
||||
|
||||
Reference in New Issue
Block a user