Fix new Question in Ponder

Summary: I derped here and broke new questions, also remove old Answer constants

Test Plan: Ask a new question, see it save

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D13899
This commit is contained in:
Chad Little
2015-08-14 09:51:52 -07:00
parent 603c91e08a
commit 3a6c3cc5ca
3 changed files with 22 additions and 36 deletions

View File

@@ -171,23 +171,26 @@ final class PonderQuestionViewController extends PonderController {
$view->invokeWillRenderEvent();
$view->addSectionHeader(
$details = PhabricatorMarkupEngine::renderOneObject(
$question,
$question->getMarkupField(),
$viewer);
if ($details) {
$view->addSectionHeader(
pht('Details'),
PHUIPropertyListView::ICON_SUMMARY);
$view->addTextContent(
array(
phutil_tag(
'div',
array(
'class' => 'phabricator-remarkup',
),
PhabricatorMarkupEngine::renderOneObject(
$question,
$question->getMarkupField(),
$viewer)),
));
$view->addTextContent(
array(
phutil_tag(
'div',
array(
'class' => 'phabricator-remarkup',
),
$details),
));
}
return $view;
}