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

The user is able to save form containing a rule with a deleted data provider

    Details

      Description

      Summary

      The user is able to save form containing a rule with a deleted data provider. 

      Steps to Reproduce

      1. Liferay > Content > Forms;
      2. Click on more button of the top right page > Data Providers;
      3. Click on the add button > Fill Data Provider required fields (Name, Description, and URL);
      4. Click on save button;
      5. Add a form with some Text Fields (label a, label b) and a Select From List (select from list) field to be used in the Rules tab;
      6. Go to Rules tab;
      7. Add a new rule;
      8. Add a condition (if label a is equal to 0);
      9. Add an action (do Auto Fill from Countries of the World where Output is select from list field);
      10. Save Rule;
      11. In another tab, go to the Data Providers settings and delete the Countries of the World data provider (the form must not have been saved or autosaved).
      12. Go back to the Forms and try to save the forms in the Builder tab;
      13. Go to the Rules tab;
      14. Note that the Data provider name was replaced by {1} and the user was not informed that the data provider no longer exists.

      Actual Results

      The user is able to save form containing a rule with a deleted data provider. 

      Expected Results

      The user should be informed that the form contains a rule pointing to a deleted data provider.

      Reproducible In:

      Liferay portal:

      master: 339bc98968c6f3c0159e8f29d7fe7cbe933ee493
      Updated on: Fri Oct 12 18:48:09 2018 -0700

      7.1.x-private: b9bf75b2a0b26d6523c686496105330322680016
      7.1.x: f5130602000d4eefb2d855fdff5e9de437439cc8
      Updated on: Fri Oct 12 15:28:15 2018 -0700

        Attachments

          Activity

            People

            • Assignee:
              alex.candido Alex Candido
              Reporter:
              alex.candido Alex Candido
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 31 weeks, 5 days ago

                Packages

                Version Package
                7.1.10 DXP FP5
                7.1.10.1 SP1
                7.1.2 CE GA3
                7.1.X
                Master