Compare commits
3 Commits
a57e6db9b8
...
c78abaebd5
Author | SHA1 | Date |
---|---|---|
valentina | c78abaebd5 | |
Beppe | c613caf49d | |
Beppe | 8c33757941 |
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ class Interventi extends Resource implements RetrieveInterface, CreateInterface,
|
|||
'in_interventi.*',
|
||||
'MAX(in_interventi_tecnici.orario_fine) as data',
|
||||
'GROUP_CONCAT(DISTINCT b.ragione_sociale SEPARATOR \', \') AS tecnici',
|
||||
'in_statiintervento_lang.name AS stato',
|
||||
'in_statiintervento_lang.title AS stato',
|
||||
];
|
||||
|
||||
$joins[] = [
|
||||
|
|
Loading…
Reference in New Issue