Page MenuHomePhorge

D25222.1734776656.diff
No OneTemporary

D25222.1734776656.diff

diff --git a/src/applications/maniphest/xaction/ManiphestTaskPointsTransaction.php b/src/applications/maniphest/xaction/ManiphestTaskPointsTransaction.php
--- a/src/applications/maniphest/xaction/ManiphestTaskPointsTransaction.php
+++ b/src/applications/maniphest/xaction/ManiphestTaskPointsTransaction.php
@@ -98,7 +98,12 @@
}
private function getValueForPoints($value) {
- if (!strlen($value)) {
+
+ // The Point can be various types also thanks to Conduit API
+ // like integers, floats, null, and strings of course.
+ // Everything meaningful must be printable as a string.
+ $is_empty = phutil_string_cast($value) === '';
+ if ($is_empty) {
$value = null;
}
if ($value !== null) {

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 10:24 (17 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1024533
Default Alt Text
D25222.1734776656.diff (730 B)

Event Timeline