Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2647448
D25390.1732368146.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
806 B
Referenced Files
None
Subscribers
None
D25390.1732368146.diff
View Options
diff --git a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldPHIDs.php b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldPHIDs.php
--- a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldPHIDs.php
+++ b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldPHIDs.php
@@ -39,14 +39,9 @@
// should hold until this can get cleaned up more thoroughly.
// TODO: Clean this up.
- $result = array();
- if (!is_array($value) && phutil_nonempty_string($value)) {
+ if (is_string($value) && phutil_nonempty_string($value)) {
$value = json_decode($value, true);
- if (is_array($value)) {
- $result = array_values($value);
- }
}
-
$this->setFieldValue($value);
return $this;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 13:22 (18 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
991539
Default Alt Text
D25390.1732368146.diff (806 B)
Attached To
Mode
D25390: Fix PHP 8.1 "json_decode(null)" exception editing a form when custom field of type Users exists
Attached
Detach File
Event Timeline
Log In to Comment