Remove global scopes for join SQL

Fixes PostgreSQL strictness
Refs https://github.com/rainlab/blog-plugin/issues/171
This commit is contained in:
Samuel Georges 2016-01-12 20:53:53 +11:00
parent 5a70cec7a2
commit d8922c263f
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ class Lists extends WidgetBase
* Manipulate a count query for the sub query
*/
$relationObj = $this->model->{$column->relation}();
$countQuery = $relationObj->getRelationCountQuery($relationObj->getRelated()->newQuery(), $query);
$countQuery = $relationObj->getRelationCountQuery($relationObj->getRelated()->newQueryWithoutScopes(), $query);
$joinSql = $this->isColumnRelated($column, true)
? DbDongle::raw("group_concat(" . $sqlSelect . " separator ', ')")