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

Forms data provider displayed and stored attributes are reversed

    Details

      Description

      Reproduced on:
      Tomcat 7.0.62 + MySQL 5.6.25. Portal master GIT ID: c17811205919afade2653a47a04f49e373ce3e46.

      Steps to Reproduce:

      1. Go to Liferay > Content > Forms
      2. Go to portlet settings ellipsis > Data Providers
      3. Add data provider from Liferay api:
        1. Name: Liferay
        2. URL: http://localhost:8080/api/jsonws/country/get-countries
        3. Displayed JSON Attribute: nameCurrentValue
        4. Stored JSON Attribute: name
        5. User Name: test@liferay.com
        6. Password: test
      4. Save
      5. Add new Form with Select field and Liferay data provider
      6. Go to Welcome page
      7. Add Form portlet
      8. Select created form
      9. Click dropdown select
      10. View available option values
      11. Choose option for Afghanistan
        Expected Result: option value reads nameCurrentValue value "Afghanistan"
        Actual Result: option value reads name value "afghanistan"
      12. View record entry in the database DDMContent table
        Expected Result: option value saved as name value "afghanistan"
        Actual Result: option value saved as nameCurrentValue value "Afghanistan"
      13. Go to Liferay > Content > Forms
      14. Go to portlet settings ellipsis > Data Providers
      15. Edit data provider from Liferay api:
        1. Displayed JSON Attribute: name
        2. Stored JSON Attribute: nameCurrentValue
      16. Save
      17. Go back to Welcome page with Form portlet
      18. Click dropdown select
      19. View available option values
      20. Choose option for Afghanistan
        Expected Result: option value reads name value "afghanistan"
        Actual Result: option value reads as nameCurrentValue value "Afghanistan"
      21. View record entry in the database DDMContent table
        Expected Result: option value saved as nameCurrentValue value "Afghanistan"
        Actual Result: option value saved as name value "afghanistan"

        Attachments

          Activity

            People

            • Assignee:
              victor.ware Victor Ware
              Reporter:
              victor.ware Victor Ware
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 45 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 Beta 5