Issue Bug Closed

#103425empty Rows in backend_layout-structure cannot edit or delete with grafic editor and throws Error in Backend User Interface

Heiko Dietrich 03/19/24, 12:07 updated 07/09/24, 15:37

Description

The following backend_layout-structure throws the Errors:

in list mode => Backend Layout
PHP Warning
Core: Error handler (BE): PHP Warning: Undefined array key “columns.” in /www/typo3/sysext/backend/Classes/Form/Element/BackendLayoutWizardElement.php line 215
(Screenshot 1)

in page mode => Content with this Backendlayout

PHP Warning
Core: Error handler (BE): PHP Warning: foreach() argument must be of type array|object, null given in /www/typo3/sysext/backend/Classes/View/Drawing/BackendLayoutRenderer.php line 69

Structure (Screenshot 3):

mod.web_layout.BackendLayouts {
  exampleKey {
    title = Example
    icon = EXT:example_extension/Resources/Public/Images/BackendLayouts/default.gif
    config {
      backend_layout {
        colCount = 1
        rowCount = 5
        rows {
          1 {
            columns {
              1 {
                name = Keyvisual
                colPos = 2
              }
            }
          }
          2 {
            columns {
              1 {
                name = Content
                colPos = 1
              }
            }
          }
          3 {
            columns {
              1 {
                name = Footer
                rowspan = 3
                colPos = 3
              }
            }
          }
          4 {
            columns {
            }
          }
          5 {
            columns {
            }
          }
        }
      }
    }
  }
}

It is not possible to delete or edit the row 4 and 5 with the grafic editor (Screenshot 2)

Please Fix that!

Thanks

Screenshot 1
!clipboard-202403191254-mx8ts.png!
Screenshot 2
clipboard-202403191254-02hha.png

Screenshot 3
clipboard-202403191255-zs4be.png

Reviews 3