Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2688376
D25554.1734721620.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
842 B
Referenced Files
None
Subscribers
None
D25554.1734721620.diff
View Options
diff --git a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php
--- a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php
+++ b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldInt.php
@@ -53,10 +53,13 @@
PhabricatorCursorPagedPolicyAwareQuery $query,
$value) {
- if (phutil_nonempty_scalar($value)) {
- $query->withApplicationSearchContainsConstraint(
- $this->newNumericIndex(null),
- $value);
+ if (is_array($value) || phutil_nonempty_scalar($value)) {
+ $value = (array)$value;
+ if ($value) {
+ $query->withApplicationSearchContainsConstraint(
+ $this->newNumericIndex(null),
+ $value);
+ }
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 19:07 (13 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1020517
Default Alt Text
D25554.1734721620.diff (842 B)
Attached To
Mode
D25554: Custom integer fields: fix search by array of possible values
Attached
Detach File
Event Timeline
Log In to Comment