@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix int fields for now

Summary: Fix T15516

Test Plan: Viewed an "int" custom field, no boom.

Reviewers: speck, valerio.bozzolan, O1 Blessed Committers

Reviewed By: valerio.bozzolan, O1 Blessed Committers

Subscribers: tobiaswiese, Matthew, Cigaryno

Maniphest Tasks: T15516

Differential Revision: https://we.phorge.it/D25325

+7 -3
+7 -3
src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
··· 301 301 } 302 302 303 303 public function renderPropertyViewValue(array $handles) { 304 - if (!phutil_nonempty_string($this->getFieldValue())) { 305 - return null; 304 + // If your field needs to render anything more complicated then a string, 305 + // then you should override this method. 306 + $value_str = phutil_string_cast($this->getFieldValue()); 307 + 308 + if (phutil_nonempty_string($value_str)) { 309 + return $value_str; 306 310 } 307 - return $this->getFieldValue(); 311 + return null; 308 312 } 309 313 310 314 public function shouldAppearInApplicationSearch() {