Closed (duplicate)
Project:
Conditional Fields
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2013 at 05:53 UTC
Updated:
25 Nov 2013 at 07:34 UTC
Jump to comment: Most recent
Comments
Comment #1
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