1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-29 17:00:59 +01:00

Show less misleading summary, test plan authors

Summary:
Instead of assuming the test plan and summary are written by the author
of the differential revision, let's assume they are written by the author
of the latest differential diff.

Test Plan: viewed a drev that had been commandeered but not updated to check authors

Reviewers: epriestley, jungejason, vrana

Reviewed By: epriestley

CC: aran, Koolvin

Maniphest Tasks: T1235

Differential Revision: https://secure.phabricator.com/D2550
This commit is contained in:
Nick Harper 2012-05-23 14:57:54 -07:00
parent ec27d39b8b
commit 0ddfd0b4fb

View file

@ -364,8 +364,10 @@ final class DifferentialRevisionViewController extends DifferentialController {
private function getImplicitComments(DifferentialRevision $revision) {
$diff = $revision->loadActiveDiff();
$template = new DifferentialComment();
$template->setAuthorPHID($revision->getAuthorPHID());
$template->setAuthorPHID($diff->getAuthorPHID());
$template->setRevisionID($revision->getID());
$template->setDateCreated($revision->getDateCreated());