The table {election_ballot} should have a unique constraint ('election_id', 'post_id', 'uid'). This would ensure that never can there be more than one vote per person for the same election post.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Liam Morland created an issue. See original summary.

Liam Morland’s picture

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

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

Liam Morland’s picture

Assigned: Unassigned » Liam Morland
Status: Closed (fixed) » Active

The constraint should be ('post_id', 'uid').

Liam Morland’s picture

Assigned: Liam Morland » Unassigned
Status: Active » Needs review
FileSize
989 bytes
pjcdawkins’s picture

Status: Needs review » Fixed

Committed - thanks

Status: Fixed » Closed (fixed)

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