Fix duplicazione template email

This commit is contained in:
MatteoPistorello 2023-02-28 16:45:13 +01:00
parent 9f096c755e
commit b45d91c7c1
1 changed files with 1 additions and 1 deletions

View File

@ -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!'));