In conditional_fields.module, conditional_fields_dependent_validate() function.
$form_state_addition is always added to $form_state['conditional_fields_untriggered_dependents'][].

To me this seems incorrect, it should only be added to the conditional_fields_untriggered_dependents array IF the dependency is untriggered as per the attached patch.

This issue occurred for me when conditionally requiring an Integer field and filling it with text. number_field_widget_validate() Was correctly setting a form error. Conditional fields removed the error and failed to re-set it back into form errors against the field.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlin06 created an issue. See original summary.

merlin06’s picture

Status: Active » Needs review

Status: Needs review » Needs work
merlin06’s picture

Status: Needs work » Closed (outdated)
FileSize
637 bytes