Page MenuHomePhorge

D25765.1734631446.diff
No OneTemporary

D25765.1734631446.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
Thu, Dec 19, 18:04 (20 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015288
Default Alt Text
D25765.1734631446.diff (641 B)

Event Timeline