Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
after updating to latest dev can't save form with conditional fields.
just after update it works.
after a cache clear still works (drush cc all).
but if I run a db update (drush updb) no update are perfomed:
No database updates required [success]
Finished performing updates. [ok]
But then I can't save forms that have conditional fields any more. I get this error message.
Notice: Undefined index: #conditional_fields in conditional_fields_evaluate_dependencies() (linea 1010 di ../sites/all/modules/conditional_fields/conditional_fields.module).
Warning: Invalid argument supplied for foreach() in conditional_fields_evaluate_dependencies() (linea 1013 di ../sites/all/modules/conditional_fields/conditional_fields.module).
Notice: Undefined index: field_posizione in conditional_fields_evaluate_dependencies() (linea 1026 di ../sites/all/modules/conditional_fields/conditional_fields.module).
Comments
Comment #1
xlyz CreditAttribution: xlyz commentedit seems to be triggered by un unset($form['field']) I have in a hook_form_alter() function.it is triggered if you use the function dsm from module devel to check the output of get_defined_vars().
dms($form) does not trigger it.
You need to save the form twice to see the problem (the first time it works as expected).
Comment #2
xlyz CreditAttribution: xlyz commentedchanging priority.
Comment #3
kenorb CreditAttribution: kenorb commentedI've these errors when trying to submit step on multistep entity form.
Not sure why they're happening. I've some rules in place.
Comment #4
kenorb CreditAttribution: kenorb commented#2052659: Invalid argument supplied for foreach() in conditional_fields_evaluate_dependencies() (line 1015 of conditional_fields.module