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

Can't update content type with minimal fields data

    XMLWordPrintable

Details

    Description

      When updating the field in content type, the required and translations fields are required, even if we do not change them

       

      Steps to reproduce

      1. Install Ibexa DXP 3.3
      2. Create a migration file (e.g. via php bin/console ibexa:migration:generate)
      3. Change the position of the field and leave only the necessary data like identifier, type, and position. Example file for image CT:
      -
          type: content_type
          mode: update
          match:
              field: content_type_identifier
              value: image
          metadata:
              identifier: image
              mainTranslation: eng-GB
              modifierId: 14
              modificationDate: '2002-09-08T11:36:32+00:00'
              remoteId: f6df12aa74e36230eb675f364fccd25a
              urlAliasSchema: null
              nameSchema: '<name>'
              container: false
              defaultAlwaysAvailable: true
              defaultSortField: 1
              defaultSortOrder: 1
              translations:
                  eng-GB:
                      name: Image
          fields:
              -
                  identifier: name
                  type: ezstring
                  position: 2
              -
                  identifier: caption
                  type: ezrichtext
                  position: 1 
      1. Import migration

       

      Result

      Can't execute migration with the error message:
      Failed denormalizing Step 0. Notice: Undefined index: required

       

      Expected result

      Possibility execute migration without entering fields that are not needed during the change

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              mateusz.debinski@ibexa.co Mateusz Dębiński
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: