Merge branch 'ent-13296-boton-next-en-alert-templates-roto' into 'develop'

Ent 13296 boton next en alert templates roto

See merge request artica/pandorafms!7134
This commit is contained in:
Matias Didier 2024-04-03 15:23:12 +00:00
commit 4345253689
1 changed files with 2 additions and 1 deletions

View File

@ -350,7 +350,8 @@ function update_template($step)
'previous_name' => $previous_name,
];
if ($name_check === false) {
$original_name = db_get_value('name', 'talert_templates', 'id', $id);
if ($name_check === false || $original_name === $name_check) {
$result = alerts_update_alert_template($id, $values);
} else {
ui_print_warning_message(__('Another template with the same name already exists'));