Fix duplicazione template email
This commit is contained in:
parent
9f096c755e
commit
b45d91c7c1
|
@ -69,7 +69,7 @@ switch (post('op')) {
|
||||||
$id_record = $dbo->lastInsertedID();
|
$id_record = $dbo->lastInsertedID();
|
||||||
$dbo->query('DROP TEMPORARY TABLE tmp');
|
$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!'));
|
flash()->info(tr('Template duplicato correttamente!'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue