Merge branch 'ent-4200-visual-console-omnipresent-group-summary' into 'develop'

Fixed the omnipresent group summary bug

See merge request artica/pandorafms!2496
This commit is contained in:
Alejandro Fraguas 2019-06-13 13:25:50 +02:00
commit beea6941e5
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,
]