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.
ricky.middaugh:
"Voting completion page" is a way to bring the voter out of the election itself - when a user has finished voting and / or abstaining on every post, a button appears that brings users to a URL configured by election after a confirmation. We used this to bring voters to a "Thank you" page with an exit survey.
This was split from issue #1994958: Add a serialized 'settings' column to the {election} table so that elections can have arbitrary settings. by ricky.middaugh.
Comments
Comment #1
pjcdawkins CreditAttribution: pjcdawkins commentedThis causes the form to fail validation even if the path is left blank.
Comment #2
pjcdawkins CreditAttribution: pjcdawkins commentedThis Views display does not exist.
Comment #3
pjcdawkins CreditAttribution: pjcdawkins commentedI might have guessed that "Finish voting" meant:
Neither of which are true. So I think this feature could become a source of confusion for voters.
Comment #4
ricky.middaugh CreditAttribution: ricky.middaugh commentedThe first two issues mentioned above are fixed in the first patch (election-fix-redirect-1995640-5-do-not-test.patch). The redirection URL should no longer be required (Blank is a valid option), and the views display that was being used has been removed.
The second patch updates the voting button that appears - instead of saying "Finish voting" it now defaults to "I'm done" and can be updated per election by anyone with permission to modify elections.
The patch in the description must be run first for these patches to work. Sending this one to review - let me know what your thoughts are on the new button default.
Comment #6
Liam MorlandPatch in parent ticket is committed, so it no longer has to be applied before the patches in this ticket.
Comment #7
Liam MorlandThis patch is a re-roll which combines the three patches in this issue.
Comment #8
Liam MorlandThis issue depends on #1995698: Redirect users to the next available post in the election after each vote ("rolling ballot").
Comment #9
OpsTao CreditAttribution: OpsTao commentedI have tried running the #7 patch from Mac Terminal but got this partial-success result:
Will result be insufficient? Suggest a more reliable way to patch?
Comment #10
pjcdawkins CreditAttribution: pjcdawkins commented@OpsTao
Patches are designed to apply against the latest -dev version of the module. Perhaps you have a slightly older version?
Instructions on applying patches:
https://www.drupal.org/patch/apply
Comment #11
OpsTao CreditAttribution: OpsTao commentedIt was the latest stable release (7.x-1.0-beta25) I was patching. I can try it on 7.x-1.x-dev. But since the functionality provided by the patch is something we really need on the production site, perhaps it is unwise to use it at all, since it will depend on using the dev version.
Comment #12
pjcdawkins CreditAttribution: pjcdawkins as a volunteer commented@OpsTao It actually looks as if the patch won't cover your needs yet.
@Liam Morland
This needs to check voting access. If the user does not have access to that post, it should skip the check (at the moment it will return FALSE).
Comment #13
Liam MorlandDo you mean calling election_vote_access() in the if statement where election_vote_check_account_previously_voted() is called?
Comment #14
Liam MorlandIf you would like this included in 7.x-1.0, please provide an updated patch in the next week or so.