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)); }