Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11743

Multiple menu item link parameters get lost if link type is layered-modal

    XMLWordPrintableJSON

Details

    Description

      I got problems by opening a modal via menu link with two parameters. Only the first parameter is successfully accessible in modal's screens definition.

      Investigation revealed that for a menu link of type 'layered-modal' inline JS-Code get created with defined action-String. This String is used to set following context parameters.

      The problem is, that parameter concatenating expression '&' is not encoded like

      // .../control/uri?param1=1&param2=2
      

       

      My solution for this problem was to extend MacroMenuRenderer#renderLink by replacing 

      &

      by '&'.

      Furthermore, this method shows that submitted parameters, defined between menus link tags, will be ignored, if link type is 'layered-modal'. So, within action-String, we have to submit parameters.

        

      Attachments

        Activity

          People

            uHeidfeld Ulrich Heidfeld
            uHeidfeld Ulrich Heidfeld
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: