Commit 984a2e2f by pupi1985

Improve performance by just passing needed answers instead of all

parent 55e25098
...@@ -877,7 +877,7 @@ ...@@ -877,7 +877,7 @@
qa_post_index($oldanswer['postid'], 'C', $question['postid'], $parentid, null, $content, $format, $text, null, $oldanswer['categoryid']); qa_post_index($oldanswer['postid'], 'C', $question['postid'], $parentid, null, $content, $format, $text, null, $oldanswer['categoryid']);
if ($question['selchildid'] == $oldanswer['postid']) { // remove selected answer if ($question['selchildid'] == $oldanswer['postid']) { // remove selected answer
qa_question_set_selchildid(null, null, null, $question, null, $answers); qa_question_set_selchildid(null, null, null, $question, null, array($oldanswer['postid'] => $oldanswer));
} }
$eventparams=array( $eventparams=array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment