summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNovitsh2015-11-12 08:03:06 (GMT)
committerNovitsh2015-11-12 08:03:06 (GMT)
commit732a0a89bf397bcc9890f1a96e8d57530e269caf (patch)
treebf9024c1aef8bdf300d9e78878c693651f1baa90
parent2d84cee10b51ae898ade124055cf3d99596087ca (diff)
Issue #2613576 by Novitsh: Fixed an issue due to wrapping in fieldset other fields were not matching anymore.F_2613576-toggle_facet_count
-rw-r--r--src/Form/FacetForm.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Form/FacetForm.php b/src/Form/FacetForm.php
index e9c2157..56ea3f1 100644
--- a/src/Form/FacetForm.php
+++ b/src/Form/FacetForm.php
@@ -355,7 +355,7 @@ class FacetForm extends EntityForm {
* Handles changes to the selected widgets.
*/
public function buildAjaxWidgetConfigForm(array $form, FormStateInterface $form_state) {
- return $form['widget_configs'];
+ return $form['widget_wrapper']['widget_configs'];
}
/**
@@ -380,16 +380,16 @@ class FacetForm extends EntityForm {
// validate(). Also, use proper subset of $form for first parameter?
$config = $this->config('facetapi.facet.' . $facet->id());
if ($config_form = $widget_instance->buildConfigurationForm([], $form_state, ($config instanceof Config) ? $config : NULL)) {
- $form['widget_configs']['#type'] = 'details';
- $form['widget_configs']['#title'] = $this->t('Configure the %widget widget', ['%widget' => $this->getWidgetPluginManager()->getDefinition($widget)['label']]);
- $form['widget_configs']['#open'] = $facet->isNew();
+ $form['widget_wrapper']['widget_configs']['#type'] = 'details';
+ $form['widget_wrapper']['widget_configs']['#title'] = $this->t('Configure the %widget widget', ['%widget' => $this->getWidgetPluginManager()->getDefinition($widget)['label']]);
+ $form['widget_wrapper']['widget_configs']['#open'] = $facet->isNew();
- $form['widget_configs'] += $config_form;
+ $form['widget_wrapper']['widget_configs'] += $config_form;
}
else {
- $form['widget_configs']['#type'] = 'container';
- $form['widget_configs']['#open'] = TRUE;
- $form['widget_configs']['widget_information_dummy'] = [
+ $form['widget_wrapper']['widget_configs']['#type'] = 'container';
+ $form['widget_wrapper']['widget_configs']['#open'] = TRUE;
+ $form['widget_wrapper']['widget_configs']['widget_information_dummy'] = [
'#type' => 'hidden',
'#value' => '1',
'#default_value' => '1',