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

Forms can't upgrade visibility expressions that have more than one type of logical operator

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 7.1.X, 7.2.X, 7.3.X, Master
    • Fix Version/s: None
    • Component/s: Forms
    • Labels:
      None
    • Fix Priority:
      3

      Description

      Steps to reproduce:

      1. Using a Liferay 7.0 instance, go to Content > Forms and create a new form containing the following fields:
        1. Text field with label "text";
        2. Text field with label "hiddenText" and visibility expression (under the "Show More Options" accordion) "(contains(text, "show") || contains(text, "appear")) && contains(text, "hidden")";
      2. Optional step: put that form on a page and test that the visibility expression works;
      3. Shut down the server;
      4. Run the master's upgrade tool on the same database and remember to move the document library from the old bundle to the new one.

      Actual result:
      Upgrade finishes successfully, but expression doesn't work as before. If you enter to edit the form, go to the rules tab and you will see that all logical operators were switched to "OR". Before, the hidden field should be visible if a user entered "show hidden" or "appear hidden". Now the hidden field becomes visible by simply typing "hidden".
      Expected result:
      Upgrade finishes successfully and expression still works as before.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rebeca.silva Rebeca Silva
              Reporter:
              rodrigo.paulino Rodrigo Paulino
              Participants of an Issue:
              Recent user:
              Rebeca Silva
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                32 weeks, 2 days ago

                  Packages

                  Version Package