Make new answers work

This commit is contained in:
Zach Copley
2011-03-31 09:58:26 -07:00
parent 7669bed9f3
commit eeff6285ae
6 changed files with 41 additions and 26 deletions

View File

@@ -167,11 +167,11 @@ class QnA_Answer extends Managed_DataObject
*/
function getQuestion()
{
$question = self::staticGet('id', $this->question_id);
$question = QnA_Question::staticGet('id', $this->question_id);
if (empty($question)) {
throw new Exception("No question with ID {$this->question_id}");
}
return question;
return $question;
}
function getProfile()