Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2694214
D25325.1734772921.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
883 B
Referenced Files
None
Subscribers
None
D25325.1734772921.diff
View Options
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
@@ -301,10 +301,14 @@
}
public function renderPropertyViewValue(array $handles) {
- if (!phutil_nonempty_string($this->getFieldValue())) {
- return null;
+ // If your field needs to render anything more complicated then a string,
+ // then you should override this method.
+ $value_str = phutil_string_cast($this->getFieldValue());
+
+ if (phutil_nonempty_string($value_str)) {
+ return $value_str;
}
- return $this->getFieldValue();
+ return null;
}
public function shouldAppearInApplicationSearch() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 09:22 (16 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1021197
Default Alt Text
D25325.1734772921.diff (883 B)
Attached To
Mode
D25325: Fix int fields for now
Attached
Detach File
Event Timeline
Log In to Comment