Page MenuHomePhabricator

D20360.id48580.diff
No OneTemporary

D20360.id48580.diff

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

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)

Event Timeline