Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-3459

[Content Types] A java script exception occurred while user trying create a new content type without defined fields

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.1.x-dev
    • 4.2.0-rc1, 4.1.x-dev, 4.2.x-dev, 4.1.5
    • None

    Description

      Steps to reproduce:

      1. Log in to back office.
      2. Go to Content / Content Types / Content.
      3. Start creating a new content type.
      4. Fill in required field 'Identifier'.
      5. Click on 'Create' button (do not add any field to field definition section).

      Actual result:

      See attached screenshot.

      A java script exception occurred while user trying create a new content type without defined fields.

      Uncaught TypeError: Cannot read properties of null (reading 'closest')
          at scrollToInvalidInput (ibexa-admin-ui-content-type-edit-js.js:404:45)
          at HTMLFormElement.<anonymous> (ibexa-admin-ui-content-type-edit-js.js:524:7)
          at HTMLButtonElement.trigger (ibexa-admin-ui-layout-js.js:28714:26) 

      Expected result:

      • No exception occurs.
      • User receives a popup notification that it's required to define at least one field in field definition section.

       

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              bogdan.mazur@ibexa.co Bogdan Mazur
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: