Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15337541
D14413.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
861 B
Referenced Files
None
Subscribers
None
D14413.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 10, 6:17 AM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7376421
Default Alt Text
D14413.diff (861 B)
Attached To
Mode
D14413: Preventing duplicate empty string aliases in Phurl's
Attached
Detach File
Event Timeline
Log In to Comment