Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Jan 18: 1.5 release

Bug? Answering a question keeps the answer box filled in

+1 vote
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.
asked Aug 19, 2010 in Q2A Core by DisgruntledGoat
edited Aug 19, 2010 by DisgruntledGoat

1 Answer

0 votes
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.
answered Aug 23, 2010 by gidgreen
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
Hi Gidgreen
This code is not working in Chrome browser.
Please suggest what to do?