Page MenuHomePhorge

D25765.1736968284.diff
No OneTemporary

D25765.1736968284.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
@@ -82,7 +82,7 @@
foreach ($xactions as $xaction) {
$new = $xaction->getNewValue();
- if (strlen($new) && !is_numeric($new)) {
+ if (!phutil_nonempty_string($new) && !is_numeric($new)) {
$errors[] = $this->newInvalidError(
pht('Points value must be numeric or empty.'));
continue;

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 15, 19:11 (2 w, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1116201
Default Alt Text
D25765.1736968284.diff (642 B)

Event Timeline