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

If a field fails validations while editing a form within a modal, the modal hangs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.0
    • Labels:
      None

      Description

      Assumptions

      1. At least one order on the virtual instance
      2. Logged in as an omni admin

      Steps to Reproduce

      1. Go to a modal within the admin UI that has a form, e.g. Control Panel → Orders → [Order Detail]
      2. Click Edit on the Summary section
      3. Add an invalid value in a field, e.g. a negative number for a discount
      4. Click the submit button

      Expected Behavior

      Modal stays open, showing the invalid entry

      Actual Behavior

      Modal stays open but doesn't show the invalid entry. Loading animation happens and stays on forever until the user clicks the X button or refreshes the page.

      Notes

      • Can also test by trying to add catalog without a name

      Reproduced On

      7.2

      Tomcat 9.0.17 + HSQL 2.3.3
      DXP 7.2 git hash ed845d7a0a933fe73fd1540d04d9213974b5a553
      Commerce git hash 5450614a80125b119bb320bcdc155a505f79a944

      7.1

      Tomcat 9.0.17 + HSQL 2.3.3
      DXP 7.1 and Commerce git hash 5450614a80125b119bb320bcdc155a505f79a944

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matija.petanjek Matija Petanjek
              Reporter:
              corbin.murakami Corbin Murakami
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.0