Fixed the omnipresent group summary bug

This commit is contained in:
Alejandro Gallardo Escobar 2019-06-12 09:16:47 +02:00
parent 51d5e1d951
commit 8793e2debd
1 changed files with 4 additions and 3 deletions

View File

@ -319,7 +319,7 @@ final class Container extends Model
// Default filter.
$filter = ['id_layout' => $layoutId];
$fields = [
'id',
'DISTINCT(id) AS id',
'type',
'cache_expiration',
'id_layout',
@ -340,6 +340,7 @@ final class Container extends Model
// Only true condition if type is GROUP_ITEM.
$filter[] = '('.\db_format_array_where_clause_sql(
[
'id_layout' => $layoutId,
'type' => GROUP_ITEM,
'id_group' => $groupsFilter,
]