cowboy commit -- fixing fatal I introduced from D4174

Summary: we don't always have a diff so instead set an explicit title in the controller.

Test Plan: no more fatals. grepped carefully for every call site and tested them all
This commit is contained in:
Bob Trahan
2012-12-12 21:21:56 -08:00
parent 2f82210e46
commit 86a106d0b1
5 changed files with 24 additions and 3 deletions

View File

@@ -257,7 +257,12 @@ final class DiffusionCommitController extends DiffusionController {
}
}
$change_list_title = DiffusionView::nameCommit(
$repository,
$commit->getCommitIdentifier()
);
$change_list = new DifferentialChangesetListView();
$change_list->setTitle($change_list_title);
$change_list->setChangesets($changesets);
$change_list->setVisibleChangesets($visible_changesets);
$change_list->setRenderingReferences($references);