From b2ff819ce8806a6c7e81f35b38a4bd682e6b12a2 Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Mon, 26 Aug 2019 10:50:54 +0200 Subject: [PATCH] Fix #637 --- modules/preventivi/actions.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/preventivi/actions.php b/modules/preventivi/actions.php index a0be102d5..820998a71 100644 --- a/modules/preventivi/actions.php +++ b/modules/preventivi/actions.php @@ -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; }