Skip to content

Commit

Permalink
fix: prioritize link_title if value != link_title
Browse files Browse the repository at this point in the history
(cherry picked from commit f54f241)
  • Loading branch information
shariquerik authored and mergify[bot] committed Dec 8, 2023
1 parent b28318e commit 4efd750
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frappe/public/js/frappe/form/formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 4efd750

Please sign in to comment.