From 957cb7de83f9760e3ce73506c8a7bc4f40035aff Mon Sep 17 00:00:00 2001 From: loviuz Date: Fri, 4 Jun 2021 17:17:59 +0200 Subject: [PATCH] Retrofix per aggiornare l'ordine righe considerando l'ordine precedente --- lib/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.php b/lib/common.php index cbe38e105..e3d2622a3 100755 --- a/lib/common.php +++ b/lib/common.php @@ -116,7 +116,7 @@ function orderValue($table, $field, $id) */ function reorderRows($table, $field, $id) { - $righe = database()->select($table, 'id', [$field => $id]); + $righe = database()->select($table, 'id', [$field => $id], ['order' => 'ASC']); $i = 1; foreach ($righe as $riga) {