diff --git a/src/applications/diffusion/controller/DiffusionCommitController.php b/src/applications/diffusion/controller/DiffusionCommitController.php --- a/src/applications/diffusion/controller/DiffusionCommitController.php +++ b/src/applications/diffusion/controller/DiffusionCommitController.php @@ -459,9 +459,12 @@ $filetree = id(new DifferentialFileTreeEngine()) ->setViewer($viewer) - ->setChangesets($changesets) ->setDisabled(!$show_changesets); + if ($show_changesets) { + $filetree->setChangesets($changesets); + } + $description_box = id(new PHUIObjectBoxView()) ->setHeaderText(pht('Description')) ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)