Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2682229
D25162.1734649840.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25162.1734649840.diff
View Options
diff --git a/src/applications/transactions/editengine/PhabricatorEditEngineSubtype.php b/src/applications/transactions/editengine/PhabricatorEditEngineSubtype.php
--- a/src/applications/transactions/editengine/PhabricatorEditEngineSubtype.php
+++ b/src/applications/transactions/editengine/PhabricatorEditEngineSubtype.php
@@ -43,11 +43,27 @@
return $this->icon;
}
+ /**
+ * Set the text of the tag
+ *
+ * This is usually the 'name' key of your subtype map.
+ * Sometime this is an uppercase text like 'BUG' for a 'bug' subtype name.
+ *
+ * @param string|null $text
+ * @return self
+ */
public function setTagText($text) {
$this->tagText = $text;
return $this;
}
+ /**
+ * Get the text of the tag
+ *
+ * @see PhabricatorEditEngineSubtype::setTagText()
+ *
+ * @return string|null
+ */
public function getTagText() {
return $this->tagText;
}
@@ -89,7 +105,7 @@
}
public function hasTagView() {
- return (bool)strlen($this->getTagText());
+ return phutil_nonempty_string($this->getTagText());
}
public function newTagView() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 23:10 (20 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015599
Default Alt Text
D25162.1734649840.diff (1 KB)
Attached To
Mode
D25162: Fix PHP 8.1 "strlen(null)" exception which blocks rendering list of Active/All projects
Attached
Detach File
Event Timeline
Log In to Comment