Page MenuHomePhabricator

D21638.diff
No OneTemporary

D21638.diff

diff --git a/src/applications/differential/controller/DifferentialDiffCreateController.php b/src/applications/differential/controller/DifferentialDiffCreateController.php
--- a/src/applications/differential/controller/DifferentialDiffCreateController.php
+++ b/src/applications/differential/controller/DifferentialDiffCreateController.php
@@ -27,7 +27,13 @@
$diff = null;
// This object is just for policy stuff
$diff_object = DifferentialDiff::initializeNewDiff($viewer);
- $repository_phid = null;
+
+ if ($revision) {
+ $repository_phid = $revision->getRepositoryPHID();
+ } else {
+ $repository_phid = null;
+ }
+
$errors = array();
$e_diff = null;
$e_file = null;

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 5, 9:32 AM (14 h, 2 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6828756
Default Alt Text
D21638.diff (722 B)

Event Timeline