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

Misleading error message when a user attempts to save a promotion with Coupon Code enabled but no coupon code

    Details

      Description

      Steps to Reproduce

      1. Create a promotion (Commerce → Promotions)
      2. Enable Coupon Code
      3. Leave the Coupon Code field blank
      4. Save as Draft or Publish (either works)

      Expected Result

      Error prevents saving
      Error message explains that the user needs to define a coupon code (in friendly language) in order to save

      Actual Result

      Error message implies that the null coupon code is already in use

      Reproduced On

      7.3

      Tomcat 9.0.37 + HSQL 2.3.3
      DXP 7.3 + Commerce liferay-commerce/liferay-portal:master git hash ab15fb32bd58e4f218c8270be54ba8a835e253b7

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              corbin.murakami Corbin Murakami
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.4 CE GA1
                  Master
                  7.3.X