It is not clear if conditional voting requires a user to meet all conditions or any condition.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Liam Morland’s picture

Status: Active » Needs review
FileSize
698 bytes
pjcdawkins’s picture

+++ b/election_condition/election_condition.module
@@ -90,7 +90,7 @@ function election_condition_form_election_post_form_alter(&$form, &$form_state)
       '#prefix' => '<div class="form-item"><label for="edit-conditions">',

Er. Is there an unclosed <div> there? oops. Your patch itself is correct.

Liam Morland’s picture

You are right and that is not the only HTML issue. The message should not be in a label element; label elements need to have a for attribute that points to a form control.

The "Assign conditions" message should probably be the #description of the fieldset.

Liam Morland’s picture

pjcdawkins’s picture

Status: Needs review » Fixed

Much better. Thanks (again)!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.