Page MenuHomePhorge

D25379.1736825192.diff
No OneTemporary

D25379.1736825192.diff

diff --git a/src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php b/src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
--- a/src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
+++ b/src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
@@ -268,7 +268,7 @@
public function readValueFromRequest(AphrontRequest $request) {
$value = $request->getStr($this->getFieldKey());
- if (!strlen($value)) {
+ if (!phutil_nonempty_string($value)) {
$value = null;
}
$this->setFieldValue($value);

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 14, 03:26 (3 d, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1108754
Default Alt Text
D25379.1736825192.diff (607 B)

Event Timeline