You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Florian Motteau (Jira)" <ji...@apache.org> on 2024/03/13 16:59:00 UTC

[jira] [Created] (OFBIZ-12940) Modal title not supported on hyperlink in form fields

Florian Motteau created OFBIZ-12940:
---------------------------------------

             Summary: 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: 18.12.12, 22.01.01, 18.12.13
            Reporter: Florian Motteau


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.
 
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).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)