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

@@ -89,7 +89,7 @@ class QnaanswerForm extends Form
*/
function action()
{
return common_local_url('qnanewanswer', array('id' => $this->question->id));
return common_local_url('qnanewanswer');
}
/**
@@ -104,6 +104,7 @@ class QnaanswerForm extends Form
$id = "question-" . $question->id;
$out->element('p', 'answer', $question->title);
$out->hidden('id', $id);
$out->element('input', array('type' => 'text', 'name' => 'answer'));
}