diff --git a/include/colonne.php b/include/colonne.php index 39adebe9f..1ce8a8c94 100644 --- a/include/colonne.php +++ b/include/colonne.php @@ -26,14 +26,14 @@ echo '

'.tr('Trascina le colonne per ordinare la struttura della tabella principale, seleziona e deseleziona le colonne per renderle visibili o meno').'.

'; -$fields = $dbo->fetchArray('SELECT * FROM zz_views WHERE id_module='.prepare($id_module).' ORDER BY `order` ASC'); +$fields = $dbo->fetchArray('SELECT *, (SELECT GROUP_CONCAT(zz_groups.nome) FROM zz_group_view INNER JOIN zz_groups ON zz_group_view.id_gruppo = zz_groups.id WHERE zz_group_view.id_vista = zz_views.id) AS gruppi_con_accesso FROM zz_views WHERE id_module='.prepare($id_module).' ORDER BY `order` ASC'); foreach ($fields as $field) { echo '
- '.$field['name'].' + '.$field['name'].'
( '.$field['gruppi_con_accesso'].')