Page MenuHomePhabricator

D8458.id20063.diff
No OneTemporary

D8458.id20063.diff

diff --git a/src/applications/settings/panel/PhabricatorSettingsPanelEmailAddresses.php b/src/applications/settings/panel/PhabricatorSettingsPanelEmailAddresses.php
--- a/src/applications/settings/panel/PhabricatorSettingsPanelEmailAddresses.php
+++ b/src/applications/settings/panel/PhabricatorSettingsPanelEmailAddresses.php
@@ -161,9 +161,10 @@
$user = $request->getUser();
$e_email = true;
- $email = trim($request->getStr('email'));
+ $email = null;
$errors = array();
if ($request->isDialogFormPost()) {
+ $email = trim($request->getStr('email'));
if ($new == 'verify') {
// The user clicked "Done" from the "an email has been sent" dialog.
@@ -222,7 +223,7 @@
id(new AphrontFormTextControl())
->setLabel(pht('Email'))
->setName('email')
- ->setValue($request->getStr('email'))
+ ->setValue($email)
->setCaption(PhabricatorUserEmail::describeAllowedAddresses())
->setError($e_email));

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 25, 8:22 AM (4 h, 9 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6925595
Default Alt Text
D8458.id20063.diff (1021 B)

Event Timeline