Fixed the omnipresent group summary bug
This commit is contained in:
parent
51d5e1d951
commit
8793e2debd
|
@ -319,7 +319,7 @@ final class Container extends Model
|
||||||
// Default filter.
|
// Default filter.
|
||||||
$filter = ['id_layout' => $layoutId];
|
$filter = ['id_layout' => $layoutId];
|
||||||
$fields = [
|
$fields = [
|
||||||
'id',
|
'DISTINCT(id) AS id',
|
||||||
'type',
|
'type',
|
||||||
'cache_expiration',
|
'cache_expiration',
|
||||||
'id_layout',
|
'id_layout',
|
||||||
|
@ -340,8 +340,9 @@ final class Container extends Model
|
||||||
// Only true condition if type is GROUP_ITEM.
|
// Only true condition if type is GROUP_ITEM.
|
||||||
$filter[] = '('.\db_format_array_where_clause_sql(
|
$filter[] = '('.\db_format_array_where_clause_sql(
|
||||||
[
|
[
|
||||||
'type' => GROUP_ITEM,
|
'id_layout' => $layoutId,
|
||||||
'id_group' => $groupsFilter,
|
'type' => GROUP_ITEM,
|
||||||
|
'id_group' => $groupsFilter,
|
||||||
]
|
]
|
||||||
).')';
|
).')';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue