From 382173c2b2d464dcccd35f12cc2c97180713af06 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Mon, 16 Jan 2023 12:49:35 +0100 Subject: [PATCH] Fix query vista utenti e permessi --- update/2_4_40.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 update/2_4_40.sql diff --git a/update/2_4_40.sql b/update/2_4_40.sql new file mode 100644 index 000000000..7145df450 --- /dev/null +++ b/update/2_4_40.sql @@ -0,0 +1,13 @@ +-- Fix query viste Utenti e permessi +UPDATE `zz_modules` SET `options` = "SELECT + |select| +FROM + `zz_groups` + LEFT JOIN (SELECT `zz_users`.`idgruppo`, COUNT(`id`) AS num FROM `zz_users` GROUP BY `idgruppo`) AS utenti ON `zz_groups`.`id`=`utenti`.`idgruppo` +WHERE + 1=1 +HAVING + 2=2 +ORDER BY + `id`, + `nome` ASC" WHERE `name` = 'Utenti e permessi'; \ No newline at end of file