Page MenuHomePhorge

D25765.1726887226.diff
No OneTemporary

D25765.1726887226.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
Sat, Sep 21, 02:53 (19 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
893623
Default Alt Text
D25765.1726887226.diff (641 B)

Event Timeline