Page MenuHomePhabricator

D14413.id34821.diff
No OneTemporary

D14413.id34821.diff

diff --git a/src/applications/phurl/editor/PhabricatorPhurlURLEditor.php b/src/applications/phurl/editor/PhabricatorPhurlURLEditor.php
--- a/src/applications/phurl/editor/PhabricatorPhurlURLEditor.php
+++ b/src/applications/phurl/editor/PhabricatorPhurlURLEditor.php
@@ -49,9 +49,13 @@
switch ($xaction->getTransactionType()) {
case PhabricatorPhurlURLTransaction::TYPE_NAME:
case PhabricatorPhurlURLTransaction::TYPE_URL:
- case PhabricatorPhurlURLTransaction::TYPE_ALIAS:
case PhabricatorPhurlURLTransaction::TYPE_DESCRIPTION:
return $xaction->getNewValue();
+ case PhabricatorPhurlURLTransaction::TYPE_ALIAS:
+ if (!strlen($xaction->getNewValue())) {
+ return null;
+ }
+ return $xaction->getNewValue();
}
return parent::getCustomTransactionNewValue($object, $xaction);

File Metadata

Mime Type
text/plain
Expires
Fri, Sep 20, 1:14 PM (16 h, 32 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6621249
Default Alt Text
D14413.id34821.diff (861 B)

Event Timeline