Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F802427
D145.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
Sun, Feb 23, 11:10 PM
Size
812 B
Mime Type
text/x-diff
Expires
Mon, Feb 24, 11:10 PM (13 h, 29 m)
Engine
blob
Format
Raw Data
Handle
575349
Attached To
D145: INP-1493 - Always expand calculated fields in WHERE filters
D145.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
@@ -760,12 +760,10 @@
$where = $this->Application->makeClass('kMultipleFilter');
/* @var $where kMultipleFilter */
- if ( $for_counting ) {
- $where->addFilter('system_where', $this->extractCalculatedFields($this->WhereFilter[self::FLT_SYSTEM]->getSQL()) );
- }
- else {
- $where->addFilter('system_where', $this->WhereFilter[self::FLT_SYSTEM] );
- }
+ $where->addFilter(
+ 'system_where',
+ $this->extractCalculatedFields($this->WhereFilter[self::FLT_SYSTEM]->getSQL())
+ );
if (!$system_filters_only) {
$where->addFilter('view_where', $this->WhereFilter[self::FLT_VIEW] );
Event Timeline
Log In to Comment