Commit 4033018f authored by Henrique Mendes's avatar Henrique Mendes Committed by Colan Schwartz
Browse files

Issue #3244630 by marcos_lima, hmendes, super_romeo: Warning: Undefined array...

Issue #3244630 by marcos_lima, hmendes, super_romeo: Warning: Undefined array key "call" in OptionsButtons->checkBoxesHandler() (line 188)
parent 776771d6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -144,6 +144,12 @@ class ConditionalFieldsFormHelper {
        unset($dependee_info['parents'][$unset]);
      }

      if (isset($this->form[$dependee]['#attributes'])
        && $this->form[$dependee]['#attributes']['class'][0] == 'field--type-list-string'
        && $this->form[$dependee]['widget']['#type'] == 'checkboxes') {
        array_pop($dependee_info['parents']);
      }

      $dependee_form_field = NestedArray::getValue($this->form, $dependee_info['parents']);
      $options = $dependency['options'];