Page MenuHomePhorge

D25235.1738170636.diff
No OneTemporary

D25235.1738170636.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
@@ -24,7 +24,8 @@
public function getValueForStorage() {
$value = $this->getFieldValue();
- if (strlen($value)) {
+ $is_nonempty = phutil_string_cast($value) !== '';
+ if ($is_nonempty) {
return $value;
} else {
return null;

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 29, 17:10 (1 d, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1145293
Default Alt Text
D25235.1738170636.diff (603 B)

Event Timeline