Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2689250
D25492.1734730598.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
562 B
Referenced Files
None
Subscribers
None
D25492.1734730598.diff
View Options
diff --git a/src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php b/src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
--- a/src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
+++ b/src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
@@ -481,7 +481,7 @@
}
$field_value = $this->getFieldValue();
- if (strlen($field_value)) {
+ if (($field_value !== null) && (strlen($field_value))) {
$document->addField($field_key, $field_value);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 21:36 (13 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1020144
Default Alt Text
D25492.1734730598.diff (562 B)
Attached To
Mode
D25492: Fix PHP 8.1 "strlen(null)" exception when custom select field configured
Attached
Detach File
Event Timeline
Log In to Comment