mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-26 16:14:18 +00:00
@@ -1069,17 +1069,9 @@ frappe.form.link_formatters["Project"] = function (value, doc, df) {
|
|||||||
* @returns {string} - The link value with the added title.
|
* @returns {string} - The link value with the added title.
|
||||||
*/
|
*/
|
||||||
function add_link_title(value, doc, df, title_field) {
|
function add_link_title(value, doc, df, title_field) {
|
||||||
if (doc.doctype != df.parent) {
|
if (doc && value && doc[title_field] && doc[title_field] !== value && doc[df.fieldname] === value) {
|
||||||
return value;
|
|
||||||
} else if (
|
|
||||||
doc &&
|
|
||||||
value &&
|
|
||||||
doc[title_field] &&
|
|
||||||
doc[title_field] !== value &&
|
|
||||||
doc[df.fieldname] === value
|
|
||||||
) {
|
|
||||||
return value + ": " + doc[title_field];
|
return value + ": " + doc[title_field];
|
||||||
} else if (!value && doc.doctype && doc[title_field]) {
|
} else if (!value && doc.doctype && doc[title_field] && doc.doctype == df.parent) {
|
||||||
return doc[title_field];
|
return doc[title_field];
|
||||||
} else {
|
} else {
|
||||||
return value;
|
return value;
|
||||||
|
|||||||
Reference in New Issue
Block a user