From 5ced7116bbdf0f657b2425fccd5dea63653b0eb8 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Fri, 27 Oct 2023 14:49:14 +0200 Subject: [PATCH] Fix minore --- update/2_4_51.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update/2_4_51.sql b/update/2_4_51.sql index 47e8539c1..e2f8a2daf 100644 --- a/update/2_4_51.sql +++ b/update/2_4_51.sql @@ -63,4 +63,5 @@ INSERT INTO `zz_views` (`id_module`, `name`, `query`, `order`, `search`, `slow`, ((SELECT `id` FROM `zz_modules` WHERE `name` = 'Gestione task'), 'Prossima esecuzione', 'next_execution_at', 3, 1, 0, 0, 1), ((SELECT `id` FROM `zz_modules` WHERE `name` = 'Gestione task'), 'Precedente esecuzione', 'last_executed_at', 4, 1, 0, 0, 1); -DELETE FROM `em_print_template` INNER JOIN `zz_prints` ON `em_print_template`.`id_print` = `zz_prints`.`id` WHERE `zz_prints`.`is_record` = 0; \ No newline at end of file +-- Fix che evita che venga allegato il riepilogo interventi con tutti gli interventi del tecnico +DELETE FROM `em_print_template` WHERE `em_print_template`.`id_print` IN (SELECT `id` FROM `zz_prints` WHERE `zz_prints`.`is_record` = 0); \ No newline at end of file