From 4cd7fa2ba6bbadd80f42c0e02f3e4d7dfd5ea3ad Mon Sep 17 00:00:00 2001 From: valentina Date: Thu, 13 Jun 2024 14:44:37 +0200 Subject: [PATCH] Fix Liste --- modules/liste_newsletter/actions.php | 2 +- modules/liste_newsletter/src/Lista.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/liste_newsletter/actions.php b/modules/liste_newsletter/actions.php index 89939699c..bb8bfb393 100755 --- a/modules/liste_newsletter/actions.php +++ b/modules/liste_newsletter/actions.php @@ -60,7 +60,7 @@ switch (filter('op')) { flash()->error(tr('Esiste giĆ  una lista con questo nome.')); } else { if (Models\Locale::getDefault()->id == Models\Locale::getPredefined()->id) { - $lista->name = $descrizione; + $lista->name = $name; } $lista->setTranslation('title', $name); $lista->setTranslation('description', $description); diff --git a/modules/liste_newsletter/src/Lista.php b/modules/liste_newsletter/src/Lista.php index 24b7dc310..b34c54a3e 100644 --- a/modules/liste_newsletter/src/Lista.php +++ b/modules/liste_newsletter/src/Lista.php @@ -62,7 +62,6 @@ class Lista extends Model ]); // Ricerca nuovi record - $number = $database->fetchNum($query); $database->query('INSERT INTO em_list_receiver (id_list, record_id, record_type) '.preg_replace('/'.preg_quote('SELECT', '/').'/', 'SELECT '.prepare($this->id).',', $query, 1)); }