From b45d91c7c179b863aebc6d3481516cc829bc3ab5 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Tue, 28 Feb 2023 16:45:13 +0100 Subject: [PATCH] Fix duplicazione template email --- modules/emails/actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/emails/actions.php b/modules/emails/actions.php index c0908409e..67406a137 100755 --- a/modules/emails/actions.php +++ b/modules/emails/actions.php @@ -69,7 +69,7 @@ switch (post('op')) { $id_record = $dbo->lastInsertedID(); $dbo->query('DROP TEMPORARY TABLE tmp'); - $dbo->query('UPDATE em_templates SET name = CONCAT (name, " (copia)") WHERE id = '.prepare($id_record)); + $dbo->query('UPDATE em_templates SET name = CONCAT (name, " (copia)"), predefined=0 WHERE id = '.prepare($id_record)); flash()->info(tr('Template duplicato correttamente!'));