Merge pull request #12201 from adityahase/fix-link-control
fix(desk): Correctly format and render Link fields
This commit is contained in:
commit
aa0dca1832
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ frappe.form.formatters = {
|
|||
} else if(docfield && doctype) {
|
||||
if (!frappe.model.can_select(doctype) && frappe.model.can_read(doctype)) {
|
||||
return `<a class="grey"
|
||||
#Form/${encodeURIComponent(doctype)}/${encodeURIComponent(original_value)}
|
||||
href="#Form/${encodeURIComponent(doctype)}/${encodeURIComponent(original_value)}"
|
||||
data-doctype="${doctype}"
|
||||
data-name="${original_value}">
|
||||
${__(options && options.label || value)}</a>`;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue