Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14148233
D21638.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
722 B
Referenced Files
None
Subscribers
None
D21638.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D21638: When using "Update Diff" from the web UI, prefill "Repository" properly
Attached
Detach File
Event Timeline
Log In to Comment