From 87590a16d8f643b305f1535c2377d99658c90db8 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Thu, 15 Dec 2022 13:22:50 +0100 Subject: [PATCH] Fix #1132 query viste utenti e permessi --- update/2_4_39.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/update/2_4_39.sql b/update/2_4_39.sql index 642ddbdcf..7659382a2 100644 --- a/update/2_4_39.sql +++ b/update/2_4_39.sql @@ -38,3 +38,17 @@ HAVING ORDER BY `co_documenti`.`data` DESC, CAST(`co_documenti`.`numero_esterno` AS UNSIGNED) DESC" WHERE `name` = 'Fatture di vendita'; + +-- 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 `id`) AS utenti ON `zz_groups`.`id`=`utenti`.`idgruppo` +WHERE + 1=1 +HAVING + 2=2 +ORDER BY + `id`, + `nome` ASC" WHERE `name` = 'Utenti e permessi';