After updating to the October 2013 release, my conditional fields (dropdown multi-select list of term references dependent on selecting term reference from other select field) that were previously working fine, stoped saving data. Once reverting back to previous release, they were back working again.

Comments

psf_’s picture

I path the line 735 of conditional_fields.module:
function conditional_fields_form_field_get_values($element, $form_state) {
return; //TODO: Pedro Pelaez:: Se quitan las verificaciones de valores para que sea compatible con Entity Reference.
// Fall back to #parents to support custom dependencies.
$parents = isset($element['#field_parents']) ? $element['#field_parents'] : $element['#parents'];
return drupal_array_get_nested_value($form_state['values'], $parents);
}

The 'TODO' line stop field dependency at save time, now always save data. I had some problems at save multivalued entity reference field.

Kristen Pol’s picture

I found that this let me *save* the fields:

$parents = isset($element['#field_parents']) && !empty($element['#field_parents'])? $element['#field_parents'] : $element['#parents'];

but then the fields weren't rendering on the *view* page.

If I put a return at the beginning of:

conditional_fields_entity_view_alter

then I could see the values on the view page.

Kristen Pol’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)
Related issues: +#1542706: Conditional fields not saving

Closing as this is a duplicate of:

https://drupal.org/node/1542706