Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2630166
D25488.1732051717.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
826 B
Referenced Files
None
Subscribers
None
D25488.1732051717.diff
View Options
diff --git a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldText.php b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldText.php
--- a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldText.php
+++ b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldText.php
@@ -11,7 +11,7 @@
$indexes = array();
$value = $this->getFieldValue();
- if (strlen($value)) {
+ if (phutil_nonempty_string($value)) {
$indexes[] = $this->newStringIndex($value);
}
@@ -30,7 +30,7 @@
PhabricatorCursorPagedPolicyAwareQuery $query,
$value) {
- if (strlen($value)) {
+ if (phutil_nonempty_string($value)) {
$query->withApplicationSearchContainsConstraint(
$this->newStringIndex(null),
$value);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 21:28 (21 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
979159
Default Alt Text
D25488.1732051717.diff (826 B)
Attached To
Mode
D25488: Fix PHP 8.1 "strlen(null)" exception rendering dashboard panel with latest tasks when custom text field configured
Attached
Detach File
Event Timeline
Log In to Comment