Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
psf_ CreditAttribution: psf_ commentedI 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.
Comment #2
Kristen PolI 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.
Comment #3
Kristen PolClosing as this is a duplicate of:
https://drupal.org/node/1542706