Fix Liste

This commit is contained in:
valentina 2024-06-13 14:44:37 +02:00
parent 87a742be05
commit 4cd7fa2ba6
2 changed files with 1 additions and 2 deletions

View File

@ -60,7 +60,7 @@ switch (filter('op')) {
flash()->error(tr('Esiste già una lista con questo nome.')); flash()->error(tr('Esiste già una lista con questo nome.'));
} else { } else {
if (Models\Locale::getDefault()->id == Models\Locale::getPredefined()->id) { if (Models\Locale::getDefault()->id == Models\Locale::getPredefined()->id) {
$lista->name = $descrizione; $lista->name = $name;
} }
$lista->setTranslation('title', $name); $lista->setTranslation('title', $name);
$lista->setTranslation('description', $description); $lista->setTranslation('description', $description);

View File

@ -62,7 +62,6 @@ class Lista extends Model
]); ]);
// Ricerca nuovi record // 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)); $database->query('INSERT INTO em_list_receiver (id_list, record_id, record_type) '.preg_replace('/'.preg_quote('SELECT', '/').'/', 'SELECT '.prepare($this->id).',', $query, 1));
} }