Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
268 views
in Q2A Core by
edited by
If the option is enabled to keep the "Your answer" field turned on all the time, when I post an answer the text is still shown in the answer field afterwards.

See this image: http://imgur.com/SgC4y.jpg
I've just clicked "Add answer" and the page came back to that.

I've checked in Firefox, Chrome and Opera and the same happens in all three.

1 Answer

0 votes
by
Yes you're right - good catch!

The fix is to add the following line in qa-page-question-post.php:

unset($incontent);

... after the line:

$answerid=qa_answer_create(...

This will also be fixed in the next release.
by
Like this is right ?

$answerid=qa_answer_create($qa_db, $qa_login_userid, $qa_cookieid, $incontent, $innotify, $inemail, $question);
unset($incontent);
qa_report_write_action($qa_db, $qa_login_userid, $qa_cookieid, 'a_post', $questionid, $answerid, null);
$jumptoanchor=qa_anchor('A', $answerid);

Thanks
by
Hi Gidgreen
This code is not working in Chrome browser.
Please suggest what to do?
...