diff -u b/conditional_fields.api.inc b/conditional_fields.api.inc --- b/conditional_fields.api.inc +++ b/conditional_fields.api.inc @@ -310,7 +310,7 @@ $return = TRUE; $key_exists = NULL; $input_state = NestedArray::getValue($form_state->getValues(), $dependent['field_parents'], $key_exists); - if ($key_exists && !is_object($input_state) && isset($input_state['add_more'])) { + if ($key_exists && isset($input_state['add_more'])) { // Remove the 'value' of the 'add more' button. unset($input_state['add_more']); } @@ -332,7 +332,7 @@ $key_exists = NULL; $values = $form_state->getValues(); $input_state = NestedArray::getValue($values, $dependent['field_parents'], $key_exists); - if ($key_exists && isset($input_state['add_more'])) { + if ($key_exists && !is_object($input_state) && isset($input_state['add_more'])) { // Remove the 'value' of the 'add more' button. unset($input_state['add_more']); }