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

Brackets are sometimes removed other times preserved when editing a custom field with Text type.

    Details

      Description

      Reproduction Steps:
      1) navigate to Control Panel -> Configuration -> Custom fields
      2) click on Edit next to Web Content Article
      3) Add Custom Field
      4) Key: wccustom
      Type: Text Field - Indexed
      5) create a new Web Content Article, go to Custom Fields, enter
      [randomtext]
      6) publish (and not save as draft)

      Expected result: The value of the custom field should be:
      [randomtext]

      Actual Result: The custom field value changes to:
      randomtext
      Notice that the brackets got removed.

      7) Edit the Web Content Article's custom field, and set the new value to:
      [randomtex]
      8) After publishing this change, go back and edit the article again to see the custom field value:

      Expected result: The value of the custom field should be:
      [randomtext]

      Actual Result: After editing the article it changes to:
      [randomtext]
      so this time the brackets are preserved.

      Reproduced with the latest patches for 6.2 EE
      Reproduced on 6.2.x (a12d6f47a07cd25753b224756b6167ca691d4f42)
      Reproduced on Master (3dc89543c75327442131538f85a4b3ca30123a08), but on Master the behavior is a bit different:
      the brackets are removed in both cases (article creation, article edition)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 43 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP11
                  7.0.0 DXP SP2
                  7.0.3 CE GA4
                  7.1.X
                  Master