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

Incorrect error message with no category selected and Allow multiple categories

Details

    Description

      Description

      After creating categories in a vocabulary and making them required for web content, the error message that appears when categories are not selected are showing two contradictory messages. The error message states that "Please select at least one category for Test. You cannot select more than one category for Test."

      Only the first message should appear as you can indeed select more than one category.

      Steps to reproduce

      1. Start Liferay.
      2. Go to Categorization -> Category and create a new Vocabulary named Test
      3. Select Allow Multiple categories to be true, and under Associated Asset Types, select Web Content Article / All Asset Subtypes and make it required
      4. Create two categories in the new Vocabulary named a and b
      5. Create a new piece of basic web content and try to publish

      Results of Testing

      Expected Results: Error message should only show "Please select at least one category for Test"
      Actual Results: Error message shows both "Please select at least one category for Test" and "You cannot select more than one category for Test."

       

      Master

      Reproduced - 73398a9014750949e90ea4c383f1d25c2faf2f00

      Branch

      Reproduced - 3bacfac64d004d67d833cdcab7f168b60031ca78

      Attachments

        Activity

          People

            brooke.dalton Brooke Dalton
            il.kim Brian I. Kim
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 2 days ago

              Packages

                Version Package
                7.1.10 DXP FP13
                7.1.X
                7.2.10 DXP FP1
                7.2.1 CE GA2
                7.2.X
                7.3.10 DXP GA1
                Master