Skip to content

Commit

Permalink
Fix #1132 query viste utenti e permessi
Browse files Browse the repository at this point in the history
  • Loading branch information
Pek5892 committed Dec 15, 2022
1 parent 3f3e10f commit 87590a1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions update/2_4_39.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit 87590a1

Please sign in to comment.