Page MenuHomePhorge

D25554.1734721620.diff
No OneTemporary

D25554.1734721620.diff

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

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)

Event Timeline