Retrofix per aggiornare l'ordine righe considerando l'ordine precedente

This commit is contained in:
loviuz 2021-06-04 17:17:59 +02:00
parent 6c5b3d16d8
commit 957cb7de83
1 changed files with 1 additions and 1 deletions

View File

@ -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) {