[ https://issues.apache.org/jira/browse/OFBIZ-12940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gil Portenseigne reassigned OFBIZ-12940: ---------------------------------------- Assignee: Gil Portenseigne > Modal title not supported on hyperlink in form fields > ----------------------------------------------------- > > Key: OFBIZ-12940 > URL: https://issues.apache.org/jira/browse/OFBIZ-12940 > Project: OFBiz > Issue Type: Bug > Affects Versions: 22.01.01, 18.12.12, 18.12.13 > Reporter: Florian Motteau > Assignee: Gil Portenseigne > Priority: Major > Attachments: image-2024-03-14-08-58-13-835.png > > > Hyperlinks elements can trigger the opening of a modal window > (link-type="layered-modal"). OFBiz uses jQuery UI Dialog to achieve this, and > parameters for this library are passed through a set of data-dialog-* ** > attributes on the "a" tag, in "HtmlFormMacroLibrary::makeHyperlinkString" > Freemarker macro. Then in OfbizUtil.js, links that should open modals are > processed : data-dialog-* are used to configure jQueryUI Dialog module. > > In OfbizUtil.js, data-dialog-text attribute is used to set the title of the > modal (text in the colored top bar). The value of this attribute is set using > the "text" parameter in "makeHyperlinkString" macro. However, this macro > does not declare a "text" parameter in its signature, and > HtmlMacroFormRenderer::makeHyperlinkString does not support it. > As a result, we cannot set the modal title when using a `hyperlink` tag > with a `text` attribute in a form (although the code indicates otherwise). > !image-2024-03-14-08-58-13-835.png! -- This message was sent by Atlassian Jira (v8.20.10#820010)