Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14838598
D20360.id48580.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D20360.id48580.diff
View Options
diff --git a/src/applications/differential/editor/DifferentialRevisionEditEngine.php b/src/applications/differential/editor/DifferentialRevisionEditEngine.php
--- a/src/applications/differential/editor/DifferentialRevisionEditEngine.php
+++ b/src/applications/differential/editor/DifferentialRevisionEditEngine.php
@@ -63,6 +63,10 @@
return $object->getMonogram();
}
+ public function getCreateURI($form_key) {
+ return '/differential/diff/create/';
+ }
+
protected function getObjectCreateShortText() {
return pht('Create Revision');
}
diff --git a/src/applications/transactions/editengine/PhabricatorEditEngine.php b/src/applications/transactions/editengine/PhabricatorEditEngine.php
--- a/src/applications/transactions/editengine/PhabricatorEditEngine.php
+++ b/src/applications/transactions/editengine/PhabricatorEditEngine.php
@@ -566,6 +566,18 @@
return $this->getObjectViewURI($object);
}
+ /**
+ * @task uri
+ */
+ public function getCreateURI($form_key) {
+ try {
+ $create_uri = $this->getEditURI(null, "form/{$form_key}/");
+ } catch (Exception $ex) {
+ $create_uri = null;
+ }
+
+ return $create_uri;
+ }
/**
* @task uri
diff --git a/src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php b/src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php
--- a/src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php
+++ b/src/applications/transactions/storage/PhabricatorEditEngineConfiguration.php
@@ -227,14 +227,7 @@
public function getCreateURI() {
$form_key = $this->getIdentifier();
$engine = $this->getEngine();
-
- try {
- $create_uri = $engine->getEditURI(null, "form/{$form_key}/");
- } catch (Exception $ex) {
- $create_uri = null;
- }
-
- return $create_uri;
+ return $engine->getCreateURI($form_key);
}
public function getIdentifier() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 1, 4:58 PM (20 h, 48 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7082324
Default Alt Text
D20360.id48580.diff (1 KB)
Attached To
Mode
D20360: Fix the incorrect link target for "Create Revision" as a Menu Item
Attached
Detach File
Event Timeline
Log In to Comment