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

Fix Favorite & Subscription Topic pages #111

Merged
merged 1 commit into from Feb 5, 2019

Conversation

TheYorkshireDev
Copy link

@TheYorkshireDev TheYorkshireDev commented Feb 4, 2019

The Favorites (Forums/Favorites/Topics) and Subscription (Forums/Subscription/Topics) pages allow you to un-favorite and unsubscribe respectively. These actions havn't worked in a while from what I can see because once the buttons are clicked the topic ID which should be passed back is not getting registered with the correct ID in the controller. We need to map the HTML input tag to the parameter in the controller action.

When trying to unsubscribe from a topic it just unsubscribes from the topic with the ID of the default value of controller action i.e 0. When you try and un-favorite a topic on this page it actually throws an exception because you not a favorite of topic 0.

Fixes #110

Steps to Reproduce

I have reproduced both issues above on https://popforumsdev.azurewebsites.net/Forums

Unsubscribe not working

Result: Nothing happens.

Remove favorite

Result: Exception is thrown

The Favorites (`Forums/Favorites/Topics`) and Subscription (`Forums/Subscription/Topics`) pages allow you to un-favorite and unsubscribe respectively. These actions havn't worked in a while from what I can see because once the buttons are clicked the topic ID which should be passed back is not getting registered with the correct ID in the controller. We need to map the HTML input tag to the parameter in the controller action.

When trying to unsubscribe from a topic it just unsubscribes from the topic with the ID of the default value of controller action i.e 0. When you try and un-favorite a topic on this page it actually throws an exception because you not a favorite of topic 0.
@jeffputz jeffputz merged commit 7b72472 into POPWorldMedia:master Feb 5, 2019
@jeffputz jeffputz added this to Done in v15 Release Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v15 Release
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants