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

Provide a way to safely rename (and remove) fields in Structures to WC Structure Editors

Details

    Description

      As explained in LPS-34371, when users rename the field of a structure, two things may break:

      • Templates may be using that variable ($renamedfield.getData()) and now won't be rendered
      • WC Articles with that field will loose that field information

      The solution would be the following:

      • When the user has renamed a field in a Structure:
        • we check the templates of this structure. If they contain references to this field, we will update them.
        • we find all the wc articles using this structure. We update them to rename the field keeping the content.
      • When the user has removed a field in a Structure:
        • we check the templates of this structure. If they contain references to this field, we won't allow the user to remove the field and we will display a message saying: the following template is using this field and therefor the field can not be removed. Please, remove the reference to the field before (with a link to edit the template).

      Attachments

        Issue Links

          Activity

            People

              support-lep@liferay.com SE Support
              julio.camarero Julio Camarero (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package