Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F726823
D144.id.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
Mon, Jan 6, 1:14 AM
Size
707 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 1:14 AM (2 d, 13 h ago)
Engine
blob
Format
Raw Data
Handle
536913
Attached To
D144: INP-1492 - Replace "%2$s" with current language in "kDBList::extractCalculatedFields" method
D144.id.diff
View Options
Index: branches/5.2.x/core/kernel/db/dblist.php
===================================================================
--- branches/5.2.x/core/kernel/db/dblist.php
+++ branches/5.2.x/core/kernel/db/dblist.php
@@ -736,6 +736,8 @@
$fields = $this->getCalculatedFields($aggregated);
if ( is_array($fields) && count($fields) > 0 ) {
+ $fields = str_replace('%2$s', $this->Application->GetVar('m_lang'), $fields);
+
foreach ($fields as $field_name => $field_expression) {
$clause = preg_replace('/(\\(+)[(,` ]*' . $field_name . '[` ]{1}/', '\1 (' . $field_expression . ') ', $clause);
$clause = preg_replace('/[,` ]{1}' . $field_name . '[` ]{1}/', ' (' . $field_expression . ') ', $clause);
Event Timeline
Log In to Comment