Do not set #group for not existing status field

Created on 30 May 2024, 10 months ago

Problem/Motivation

In core/modules/node/src/NodeForm.php
$form['status']['#group'] = 'footer';
We should check the existence of the field before settings its group. Otherwise, we will end up having:

  "status" => array:1 [β–Ό
    "#group" => "footer"
  ]

Steps to reproduce

- Go to manage form display for a content type.
- Move status field to "Disabled" section,
- Debug/Dump the form.

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
Node systemΒ  β†’

Last updated about 6 hours ago

No maintainer
Created by

πŸ‡§πŸ‡ͺBelgium msnassar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024