Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F847799
D383.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Apr 19, 5:47 PM
Size
566 B
Mime Type
text/x-diff
Expires
Sun, Apr 20, 5:47 PM (22 m, 56 s)
Engine
blob
Format
Raw Data
Handle
602590
Attached To
D383: INP-1785 - Always apply "no_default" format, when getting original field value
D383.diff
View Options
Index: branches/5.2.x/core/kernel/db/dbitem.php
===================================================================
--- branches/5.2.x/core/kernel/db/dbitem.php
+++ branches/5.2.x/core/kernel/db/dbitem.php
@@ -130,6 +130,10 @@
/** @var kFormatter $formatter */
$formatter = $this->Application->recallObject($formatter);
+ if ( $formatter instanceof kMultiLanguage && strpos((string)$format, 'no_default') === false ) {
+ $format = rtrim('no_default;' . $format, ';');
+ }
+
$res = $formatter->Format($value, $field_name, $this, $format);
}
Event Timeline
Log In to Comment