Page MenuHomePhabricator

D8568.diff
No OneTemporary

D8568.diff

diff --git a/src/applications/passphrase/controller/PassphraseCredentialEditController.php b/src/applications/passphrase/controller/PassphraseCredentialEditController.php
--- a/src/applications/passphrase/controller/PassphraseCredentialEditController.php
+++ b/src/applications/passphrase/controller/PassphraseCredentialEditController.php
@@ -272,6 +272,7 @@
$title = pht('Create Credential');
$header = pht('Create New Credential');
$crumbs->addTextCrumb(pht('Create'));
+ $cancel_uri = $this->getApplicationURI();
} else {
$title = pht('Edit Credential');
$header = pht('Edit Credential %s', 'K'.$credential->getID());
@@ -279,6 +280,7 @@
'K'.$credential->getID(),
'/K'.$credential->getID());
$crumbs->addTextCrumb(pht('Edit'));
+ $cancel_uri = '/K'.$credential->getID();
}
if ($request->isAjax()) {
@@ -293,7 +295,7 @@
->appendChild($errors)
->appendChild($form->buildLayoutView())
->addSubmitButton(pht('Create Credential'))
- ->addCancelButton($this->getApplicationURI());
+ ->addCancelButton($cancel_uri);
return id(new AphrontDialogResponse())->setDialog($dialog);
}
@@ -301,7 +303,7 @@
$form->appendChild(
id(new AphrontFormSubmitControl())
->setValue(pht('Save'))
- ->addCancelButton($this->getApplicationURI()));
+ ->addCancelButton($cancel_uri));
$box = id(new PHUIObjectBoxView())
->setHeaderText($header)

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 27, 2:01 AM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6728325
Default Alt Text
D8568.diff (1 KB)

Event Timeline