You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Leila Mekika (Jira)" <ji...@apache.org> on 2021/07/09 13:56:00 UTC

[jira] [Updated] (OFBIZ-12279) Macro renderLink default height and width not retrieved on menus

     [ https://issues.apache.org/jira/browse/OFBIZ-12279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leila Mekika updated OFBIZ-12279:
---------------------------------
    Summary: Macro renderLink default height and width not retrieved on menus  (was: Macro renderLink default height and width not used on menus)

> Macro renderLink default height and width not retrieved on menus
> ----------------------------------------------------------------
>
>                 Key: OFBIZ-12279
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12279
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL APPLICATIONS
>    Affects Versions: Trunk
>            Reporter: Leila Mekika
>            Priority: Minor
>         Attachments: OFBIZ-12279.patch
>
>
> Menus link defaut parameters for height and width are not considered when the link is generated
> The problem seems to be that when parameter with empty value is passed to the macro,  macro default values are not retrieved.
> *To reproduce*
> you can create a "layered-modal" type link in a menu and click on the link (without height nor width):
> this will generate the link with parameters "data-dialog-height" and "data-dialog-width" empty
> *Patch provided*
> When applied, the MacroMenuRenderer.renderLink  will not send empty values to the macro so that default value will be retrieved (what is actually done on MacroFormRenderer.renderLookup)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)