Skip to content

Commit ff98565

Browse files
author
epriestley
committedApr 1, 2014
Fix an issue where email for "accepted" revisions would fatal
Summary: When trying to render "BRANCH", we need the active diff. Load it in general since it seems reasonable for custom fields to expect it to exist during mail rendering.
1 parent 750a30d commit ff98565

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/applications/differential/editor/DifferentialTransactionEditor.php

+2
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ protected function applyFinalEffects(
587587
$new_revision = id(new DifferentialRevisionQuery())
588588
->setViewer($this->getActor())
589589
->needReviewerStatus(true)
590+
->needActiveDiffs(true)
590591
->withIDs(array($object->getID()))
591592
->executeOne();
592593
if (!$new_revision) {
@@ -595,6 +596,7 @@ protected function applyFinalEffects(
595596
}
596597

597598
$object->attachReviewerStatus($new_revision->getReviewerStatus());
599+
$object->attachActiveDiff($new_revision->getActiveDiff());
598600

599601
foreach ($xactions as $xaction) {
600602
switch ($xaction->getTransactionType()) {

0 commit comments

Comments
 (0)
Failed to load comments.