1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Mark answers as page objects in Ponder

Summary:
Fixes T4306. We should clear notifications about a question and its answers when viewing a question page.

(Eventually we might have an answer detail page and send the notification there, and then only clear there, but this cleans things up for now.)

Test Plan: Loaded question page, verified answers appeared as page objects.

Reviewers: chad, btrahan

Reviewed By: chad

CC: aran

Maniphest Tasks: T4306

Differential Revision: https://secure.phabricator.com/D7928
This commit is contained in:
epriestley 2014-01-10 10:19:00 -08:00
parent b74c7a3d37
commit 306ef5ea72

View file

@ -69,7 +69,9 @@ final class PonderQuestionViewController extends PonderController {
array(
'device' => true,
'title' => 'Q'.$question->getID().' '.$question->getTitle(),
'pageObjects' => array($question->getPHID()),
'pageObjects' => array_merge(
array($question->getPHID()),
mpull($question->getAnswers(), 'getPHID')),
));
}