You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: actions.php
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -555,7 +555,10 @@
555
555
556
556
// Eliminazione
557
557
elseif (!empty($customs)) {
558
-
$dbo->query('DELETE FROM `zz_field_record` WHERE `id_record` = '.prepare($id_record).' AND `id_field` IN ('.implode(',', array_map('prepare', array_column($customs, 'id'))).')');
Copy file name to clipboardExpand all lines: modules/beni/actions.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@
72
72
$documenti = $dbo->fetchNum('SELECT `id` FROM `dt_ddt` WHERE `idaspettobeni`='.prepare($id_record).' UNION SELECT `id` FROM `co_documenti` WHERE `idaspettobeni`='.prepare($id_record));
73
73
74
74
if ((!empty($id_record)) && empty($documenti)) {
75
-
$dbo->query('DELETE FROM `dt_aspettobeni` WHERE `id`='.prepare($id_record));
Copy file name to clipboardExpand all lines: modules/categorie/actions.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -144,7 +144,7 @@
144
144
}
145
145
146
146
if ($dbo->fetchNum('SELECT * FROM `mg_articoli` WHERE (`id_categoria`='.prepare($id).' OR `id_sottocategoria`='.prepare($id).' OR `id_sottocategoria` IN (SELECT `id` FROM `zz_categorie` WHERE `parent`='.prepare($id).')) AND `deleted_at` IS NULL') == 0) {
147
-
$dbo->query('DELETE FROM `zz_categorie` WHERE `id`='.prepare($id));
147
+
$dbo->delete('zz_categorie', ['id' => $id]);
148
148
149
149
flash()->info(tr('Tipologia di _TYPE_ eliminata con successo!', [
Copy file name to clipboardExpand all lines: modules/causali/actions.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@
76
76
$documenti = $dbo->fetchNum('SELECT `id` FROM `dt_ddt` WHERE `idcausalet`='.prepare($id_record).' UNION SELECT `id` FROM `co_documenti` WHERE `idcausalet`='.prepare($id_record));
77
77
78
78
if ((!empty($id_record)) && empty($documenti)) {
79
-
$dbo->query('DELETE FROM `dt_causalet` WHERE `id`='.prepare($id_record));
0 commit comments