Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18586505
D8568.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
D8568.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sep 12 2025, 6:50 PM (6 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
11464681
Default Alt Text
D8568.diff (1 KB)
Attached To
Mode
D8568: Fix Passphrase cancel URI
Attached
Detach File
Event Timeline
Log In to Comment