-
Notifications
You must be signed in to change notification settings - Fork 629
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
Posted Comment gets lost if commented answer is converted to comment meanwhile #857
Comments
What should ideally happen here? |
Since it is an AJAX post, it is taking effect in
After the A-to-C-conversion is done, this is providing the wrong parentid. It refers to a comment now (which was the former answer). I tried to fix it with:
but it does not work. |
I think Q2A core doesn't make a comment as a parent as of 1.8.5. So, to fix this won't be a straight forward task. Some hacky way might be required. |
The fix above would be correct (basetype is C in this exceptional case). But I have found the reason, why it does not work in the further code: With changing the $parent the basetype is "Q" and the code in the if block is executed. However: The AJAX call is processed from
Because the form security code is not the same anymore as set fronted with the (former) Answer. Now the $parent is the Q with the hack above. |
Reproduce:
Result: Submitted comment is not saved. Instead it gets lost.
The text was updated successfully, but these errors were encountered: