Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck on survey results page #51

Closed
kenny-sellers opened this issue Oct 9, 2020 · 2 comments
Closed

Stuck on survey results page #51

kenny-sellers opened this issue Oct 9, 2020 · 2 comments

Comments

@kenny-sellers
Copy link

Describe the bug

We have a customer that has this module on their home page. Once a user submits their response for the survey, they can no longer view the home page as it will redirect them to the results page. I did a quick look through the code and I found that the module checks for a cookie and if the person has voted. If so, it directs the user to the results page. To make this work on home pages, this should really be a configuration setting whether to redirect users to the results page if they have voted.

Software Versions

  • DNN: 9.6.2
  • Module: 90.00.01

To Reproduce

Add Module to homepage of site
Add Question to Survey
Submit Vote for Survey
No longer able to access homepage.

@MaiklT
Copy link
Collaborator

MaiklT commented Nov 7, 2020

This is by design, a user is only allowed to vote once. If you don't want to redirect him to the results page, you can remove the permission to view results from the module permissions. He will then see a message that he has already voted.

@valadas
Copy link
Member

valadas commented Nov 7, 2020

Closing this as it is by design.

@valadas valadas closed this as completed Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants