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

Validations are not working properly if a field linked to them is deleted

Details

    Description

      Description:
      Validations are not deleted or disabled if a field linked to them is deleted

      Steps to Reproduce:

      1. Go to Open Menu -> Object -> Objects
      2. Create a new object
      3. Create one Name field and publish the object
      4. Create another field named "City"
      5. Go to validations tab and create a Expression Builder Validation (example : cidade == "Recife")
      6. Go to the objects entries page and add a object entry with the validation field answer being "Recife"
      7. Back to objects fields configuration and delete the the "City" field
      8. # Go to the objects entries page and add a object entry

      Expected Result:
      The validation of that field that was deleted should be working on and treated in a way that does not impact all the entries of the client, being saved successfully.

      Actual Result:
      The entry still is calling the "City" validation, even when there is no more field linked to the object.

      Verified on master : 68fe9758327a1b8d2d1968fec5d8365246800eb4

      Attachments

        Activity

          People

            selton.guedes Selton Guedes
            lucas.falcao Lucas Falcao
            Kiyoshi Lee Kiyoshi Lee
            Feliphe Marinho Feliphe Marinho
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              19 weeks, 4 days ago

              Packages

                Version Package
                7.4.3.25 CE GA25
                7.4.3.26 CE GA26
                Master