Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13974103
D16508.id39727.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
692 B
Referenced Files
None
Subscribers
None
D16508.id39727.diff
View Options
diff --git a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldLink.php b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldLink.php
--- a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldLink.php
+++ b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldLink.php
@@ -47,7 +47,12 @@
PhabricatorCursorPagedPolicyAwareQuery $query,
$value) {
- if (strlen($value)) {
+ if (is_string($value) && !strlen($value)) {
+ return;
+ }
+
+ $value = (array)$value;
+ if ($value) {
$query->withApplicationSearchContainsConstraint(
$this->newStringIndex(null),
$value);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 19 2024, 4:06 AM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6716048
Default Alt Text
D16508.id39727.diff (692 B)
Attached To
Mode
D16508: Fix ContainsConstraints for array-valued custom field constraints in "*.search" methods
Attached
Detach File
Event Timeline
Log In to Comment