Commit 8c4db57c by Scott

Deselect answer when post is hidden

Fixes #79.
parent 2eac1112
...@@ -619,6 +619,10 @@ ...@@ -619,6 +619,10 @@
$setupdated=true; $setupdated=true;
} }
if ($question['selchildid'] == $oldanswer['postid']) { // remove selected answer
qa_question_set_selchildid(null, null, null, $question, null, $answers);
}
} elseif ($status==QA_POST_STATUS_NORMAL) { } elseif ($status==QA_POST_STATUS_NORMAL) {
$newtype='A'; $newtype='A';
if ($wasqueued) if ($wasqueued)
......
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