Contribution Date
Technology
Contribution Project
Contribution Details
Something I realised from the test-fail. Is the "Enabled" checkbox checked by default when the page loads? I think that would be a good idea.
+++ b/core/modules/menu_ui/menu_ui.module
@@ -304,6 +305,13 @@ function menu_ui_form_node_form_alter(&$form, FormStateInterface $form_state) {
+ '#default_value' => isset($defaults['enabled']) ? $defaults['enabled'] : 1,
This could be simplified to $defaults['enabled'] ?? 1
Contribution Issue Link
Contribution Link
Files count
0
Patches count
0