Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1102945
D144.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
Tue, Aug 19, 12:43 PM
Size
707 B
Mime Type
text/x-diff
Expires
Wed, Aug 20, 12:43 PM (1 h, 7 m)
Engine
blob
Format
Raw Data
Handle
714321
Attached To
D144: INP-1492 - Replace "%2$s" with current language in "kDBList::extractCalculatedFields" method
D144.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