This commit is contained in:
Thomas Zilio 2019-08-26 10:50:54 +02:00
parent 65b9e2e75f
commit b2ff819ce8
1 changed files with 11 additions and 0 deletions

View File

@ -321,4 +321,15 @@ switch (post('op')) {
flash()->info(tr('Aggiunta nuova revisione!'));
break;
case 'update_position':
$orders = explode(',', $_POST['order']);
$order = 0;
foreach ($orders as $idriga) {
$dbo->query('UPDATE `co_righe_preventivi` SET `order`='.prepare($order).' WHERE id='.prepare($idriga));
++$order;
}
break;
}