Skip to content
Snippets Groups Projects
Commit a5ebba34 authored by Volodymyr Dovhaliuk's avatar Volodymyr Dovhaliuk Committed by Sascha Grossenbacher
Browse files

Issue #3397358 by GEO, v.dovhaliuk: Menu link submit save callback detection breaks some AJAX forms

parent 5828fe0e
No related branches found
No related tags found
No related merge requests found
Pipeline #72893 failed
......@@ -672,7 +672,7 @@ function token_node_menu_link_submit($entity_type, NodeInterface $node, &$form,
// Don't create a menu link if the node is not being saved.
$triggering_element = $form_state->getTriggeringElement();
if (!$triggering_element || !in_array('::save', $triggering_element['#submit'])) {
if (!$triggering_element || !isset($triggering_element['#submit']) || !in_array('::save', $triggering_element['#submit'])) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment