Skip to content
Snippets Groups Projects
Commit c34615fd authored by Jürgen Haas's avatar Jürgen Haas
Browse files

Issue #3440148 by paul121, jurgenhaas, saschaeggi: Remove hardcoding #group for the status field

parent 80baa5d4
No related branches found
No related tags found
1 merge request!553Issue #3440148 by paul121, jurgenhaas, saschaeggi: Remove hardcoding #group for the status field
......@@ -170,10 +170,12 @@ class GinContentFormHelper implements ContainerInjectionInterface {
// Set form id to status field.
if (isset($form['status']['widget']) && isset($form['status']['widget']['value'])) {
$form['status']['widget']['value']['#attributes']['form'] = $form['#id'];
$widget_type = $form['status']['widget']['value']['#type'] ?? FALSE;
}
else {
$widget_type = $form['status']['widget']['#type'] ?? FALSE;
}
// Only move status to status group if it is a checkbox.
$widget_type = $form['status']['widget']['#type'] ?? FALSE;
if ($widget_type === 'checkbox' && isset($form['status']['#group'])) {
$form['status']['#group'] = 'status';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment