Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-3486

Console errors thrown when creating an Option of type Text Field and SKU Contributor enabled

    Details

      Description

      Steps to reproduce

      1. Startup 7.1 FP17 + Commerce 2.1 lpkg on SQLServer 2017.
      2. Navigate to Control Panel > Commerce > Products > Options
      3. Create a new Option Template, fill in the Name and Description
      4. Select Text Field or Numeric field types
      5. Enable all toggles including SKU Contributor.

      Expected result
      If a field type cannot be a SKU Contributor:

      • The system should not create the Option,
      • The system should display an error message
      • The system should not have console errors

      Actual result:
      The system does not create the Option,
      The system displays an error message
      Console errors are as follows:

      2020-04-07 23:40:40.144 ERROR [http-nio-8080-exec-7][EditCPOptionMVCActionCommand:112] com.liferay.commerce.product.exception.CPOptionSKUContributorException
      com.liferay.commerce.product.exception.CPOptionSKUContributorException
      

      Creating an Option with a Text Field and SKU Contributor disabled does not throw console errors and the Option is created successfully.

      Reproduced on
      Tomcat 9.0.6 + SQLServer 2017 + 7.1 FP17 + Commerce 2.10 lpkg GIT ID 4b791d90a3f7704ae442b6f18d50d09552f760dc

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lorenzo.lapescara Lorenzo La Pescara
              Reporter:
              nikki.prudencio Nikki Prudencio
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.1