Page MenuHomePhabricator

D15865.diff
No OneTemporary

D15865.diff

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
@@ -497,6 +497,10 @@
}
public function getEffectiveObjectViewURI($object) {
+ if ($this->getIsCreate()) {
+ return $this->getObjectViewURI($object);
+ }
+
$page = $this->getSelectedPage();
if ($page) {
$view_uri = $page->getViewURI();
@@ -839,6 +843,13 @@
}
$page_key = $request->getURIData('pageKey');
+ if (!strlen($page_key)) {
+ $pages = $this->getPages($object);
+ if ($pages) {
+ $page_key = head_key($pages);
+ }
+ }
+
if (strlen($page_key)) {
$page = $this->selectPage($object, $page_key);
if (!$page) {

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 20, 3:51 PM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6723892
Default Alt Text
D15865.diff (903 B)

Event Timeline