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

Form Rules OR Condition does not work correctly after edit

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: 7.4.2 CE GA3, Master
    • Component/s: Forms
    • Labels:
      None

      Description

      Steps to Reproduce:

      1. Create "Form 1"
      2. Add a Text field to the form
      3. Add a Numeric field to the form
      4. Add a Text field to the form
      5. Save the form
      6. Navigate to the Rules tab
      7. Create a rule
        • If Text (the first text listed) is not empty
        • OR If Numeric is empty
        • DO Show Text (the second text listed)
      8. Save the rule
      9. Navigate back to Form 1 in the Form tab
      10. Press the Preview button
      11. Assert there is a Text, Numeric, and Text field
      12. Put a number in the Numeric field
      13. Assert the 2nd Text field disappears
      14. Delete the number in the Numeric field
      15. Add a character in the first Text field
      16. Assert the second Text field still appears
      17. Navigate back to the Forms page
      18. Click Form 1
      19. Navigate to the Rules tab
      20. Click the Ellipsis button for the rule
      21. Click Edit
      22. Save the Rule
      23. Go back to the Form tab
      24. Press Preview

      Expected Result:
      There should be a Text field, Numeric field, and Text field.

      Actual Result:
      There is a Text field and Numeric field. The second Text field does not show up. After editing the Rule the second OR condition does not apply.

      Reproduced on:
      Tomcat 9.0.43 + MySQL 5.7 Portal master GIT ID:9c1b8762b07131587cd68fa0de41a5cad212fdd5

      See attached video below for details.

        Attachments

          Activity

            People

            Assignee:
            carolina.barbosa Carolina Barbosa
            Reporter:
            brittney.nguyen Brittney Nguyen
            Participants of an Issue:
            Recent user:
            Rafaela Nascimento
            Engineering Assignee:
            Carolina Barbosa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 weeks, 5 days ago

                Packages

                Version Package
                7.4.2 CE GA3 DXP 7,4
                Master