Commit 667bf612 authored by cuignet.g's avatar cuignet.g Committed by David Bätge
Browse files

Issue #3254775 by cuignet.g: Notice: Undefined index: view in...

Issue #3254775 by cuignet.g: Notice: Undefined index: view in [..]/flexible_views/src/Plugin/views/filter/ColumnSelector.php on line 115
parent 473f526e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -110,6 +110,10 @@ class ColumnSelector extends FilterPluginBase {
  public function buildExposedForm(&$form, FormStateInterface $form_state) {
    parent::buildExposedForm($form, $form_state);

    if (empty($form_state->getStorage()['view'])) {
      return;
    }

    $form['#attached']['library'][] = 'flexible_views/column_selector';

    $fields = $form_state->getStorage()['view']->style_plugin->options['info'];