Skip to content
Snippets Groups Projects
Commit 51a5777b authored by Mikael Meulle's avatar Mikael Meulle Committed by Pierre Dureau
Browse files

Issue #3462504 by just_like_good_vibes: AJAX issue in views plugins

parent ad91af57
Branches
Tags
1 merge request!149fixed
Pipeline #230475 passed with warnings
......@@ -113,12 +113,12 @@ class ComponentForm extends ComponentFormBase {
$element['#source_contexts']['component_id'] = new Context($contextComponentDefinition, $component_id);
}
if ($initial_component_id === NULL) {
$element["component_id"] = self::expandAjax(self::buildComponentSelectorForm(
$component_selector_form = array_merge(self::buildComponentSelectorForm(
$wrapper_id,
$component_id
));
), ["#ajax_url" => $element["#ajax_url"]]);
$element["component_id"] = self::expandAjax($component_selector_form);
}
self::buildComponentForm(
$element,
$wrapper_id,
......@@ -241,7 +241,7 @@ class ComponentForm extends ComponentFormBase {
'#component_id' => $component_id,
'#source_contexts' => $element['#source_contexts'],
'#tag_filter' => $element['#tag_filter'],
'#ajax_url' => $element['#ajax_url'] ?? "",
'#ajax_url' => $element['#ajax_url'],
'#access' => $element['#render_props'] ?? TRUE,
'#default_value' => [
'props' => $element['#default_value']['props'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment