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

Cannot edit a content item once a validation errors occurs with a repeatable, required Web Content selector

    Details

      Description

      Issue
      Cannot edit a content item once a validation errors occurs with a repeatable, required web content selector

      Steps to Reproduce

      1. Install Liferay DXP 7.1 + fix pack 17 + hotfix 4337
      2. Start Liferay
      3. Sign in
      4. Create a web content structure called "Test" with a single repeatable, required web content selector:
        {
        "availableLanguageIds": [
        "en_US"
        ],
        "defaultLanguageId": "en_US",
        "fields": [
        {
        "label": {
        "en_US": "Web Content"
        },
        "predefinedValue": {
        "en_US": ""
        },
        "style": {
        "en_US": ""
        },
        "tip": {
        "en_US": ""
        },
        "dataType": "journal-article",
        "fieldNamespace": "ddm",
        "indexType": "keyword",
        "localizable": true,
        "name": "WebContent2syu",
        "readOnly": false,
        "repeatable": true,
        "required": true,
        "showLabel": true,
        "type": "ddm-journal-article"
        }
        ]
        }
        
      1. Create a web content template called "Test" for the "Test" structure with default FreeMarker template.
      2. Publish a Basic Web Content called "Basic 1".
      3. Publish a Basic Web Content called "Basic 2".
      4. Publish a "Test" item called "Test 1" with "Basic 1" selected.
      5. Edit "Test 1".
      6. Click [+] to add another Web Content selector.
      7. Click Publish.
      8. Click [-] to delete the empty Web Content selector.
      9. Click Publish.

      Actual Behavior
      Nothing happens. The user has to cancel and reopen the content item to be able to save further changes.

      Expected Behavior
      If the missing repeated, required field is collapsed (removed by clicking the minus button), then the expectation is that the missing requirement is cancelled.

      Reproduced in
      Liferay DXP 7.1 + DXP-17 + liferay-hotfix-4436-7110
      7.1.X Commit: ee9942895e0d7044ce7f8f0ed10129c1bca6f2af
      Master Commit: 8fb1396b753a2583a0506423a65ea015e5c11afe

        Attachments

          Activity

            People

            Assignee:
            chao.wang Chao Wang
            Reporter:
            huy.nguyen Huy Le Nguyen
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Huy Le Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 12 weeks ago

                Packages

                Version Package
                7.1.10 DXP FP20
                7.1.10.5 SP5
                7.1.X
                7.2.10 DXP FP9
                7.2.X
                7.3.5 CE GA6
                7.3.10 DXP GA1
                Master