Fix eliminazione articolo collegato a listino

This commit is contained in:
valentina 2024-07-25 16:49:44 +02:00
parent c613caf49d
commit c78abaebd5
1 changed files with 1 additions and 0 deletions

View File

@ -160,6 +160,7 @@ switch (post('op')) {
if (!empty($elementi)) {
$dbo->query('UPDATE `mg_articoli` SET `deleted_at` = NOW() WHERE `id` = '.prepare($id).Modules::getAdditionalsQuery($id_module));
} else {
$dbo->query('DELETE FROM `mg_prezzi_articoli` WHERE `id_articolo` = '.prepare($id));
$dbo->query('DELETE FROM `mg_articoli` WHERE `id` = '.prepare($id).Modules::getAdditionalsQuery($id_module));
}
}