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. // 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,
] ]
).')'; ).')';
} }