Page MenuHomePhabricator

D15865.id38218.diff
No OneTemporary

D15865.id38218.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
Thu, Oct 24, 4:32 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6723892
Default Alt Text
D15865.id38218.diff (903 B)

Event Timeline