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