-
Notifications
You must be signed in to change notification settings - Fork 25
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
Idea comments fix #11
Conversation
@@ -130,7 +130,7 @@ class AddIdeaSchema(formencode.Schema): | |||
@view_config(permission='post', route_name='idea_add', | |||
renderer='templates/idea_add.pt') | |||
def idea_add(request): | |||
target = request.GET.get('target') | |||
target = request.POST.get('target') or request.GET.get('target') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably better spelled as "target = request.params.get('target')" (request.params looks in GET first, then POST).
Hmm, there seems to be a problem with
Any idea why? |
No. I see this:
|
@brodul are you using DummyRequest? |
I fixed it in the merge. |
@iElectric yes I do |
See 40a435a |
Ok, tnx. |
Currently commenting ideas is broken. If someone wants to comment an idea just new idea is generated. Because when someone submits the comment form, the
target
idea param is ignored in add_idea view. Resulting thetarget
to be None and making a new idea.Please see the test commit.