Page MenuHomePhorge

D25379.1739161838.diff
No OneTemporary

D25379.1739161838.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
Feb 10 2025, 04:30 (6 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1108754
Default Alt Text
D25379.1739161838.diff (607 B)

Event Timeline