fix: prioritize link_title if value != link_title
This commit is contained in:
parent
a1bfdf28a2
commit
f54f2419bb
1 changed files with 4 additions and 0 deletions
|
|
@ -149,6 +149,10 @@ frappe.form.formatters = {
|
|||
var original_value = value;
|
||||
let link_title = frappe.utils.get_link_title(doctype, value);
|
||||
|
||||
if (link_title === value) {
|
||||
link_title = null;
|
||||
}
|
||||
|
||||
if (value && value.match && value.match(/^['"].*['"]$/)) {
|
||||
value.replace(/^.(.*).$/, "$1");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue