Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-109702

JS Toolkit Portlet Configuration fails with number type configurations.

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 7.2.10 DXP FP4
    • Fix Version/s: None
    • Component/s: Dynamic Data Mapping
    • Labels:
      None

      Description

      There appears to be an issue with the configuration capabilities of the latest liferay-npm-bundler projects. The first problem is that default configuration values are not being passed to the UI. The second issue is that configuration for number and float types is broken. When you declare a configuration field type for either of these, the configuration will not be displayed in the portlet configuration modal. In both these instances I have only tested instance configuration not system configuration. This is tested using liferay-npm-bundler@2.18.2 and Liferay DXP 7.2 FP4

      Ivan Zaera believes this is likely a problem with the DDM JSON that is produced. 
      In the case of the type being set to float it's rendering the following:
      {
      "availableLanguageIds": [],
      "fields": [
      {
      "name": "drink",
      "label":

      { "": "Favorite drink" }

      ,
      "dataType": "double",
      "type": "ddm-decimal",
      "tip":

      { "": "Choose the drink you like the most" }

      ,
      "predefinedValue":

      { "": "10.5" }

      }
      ]
      }

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                16 weeks, 1 day ago

                Packages

                Version Package